OpenVoiceOS / ovos-core

OpenVoiceOS Core, the FOSS Artificial Intelligence platform.
https://openvoiceos.org
Apache License 2.0
122 stars 17 forks source link

hotfix/ensure prob is float #494

Closed JarbasAl closed 3 months ago

JarbasAl commented 3 months ago

fixes

Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.337 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.349 - skills - ovos_core.transformers:transform:67 - WARNING - ovos-utterance-corrections transform exception: list index out of range
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.356 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcription': "what's the weather like", 'filename': 'file:///home/goldyfruit/.local/share/mycroft/listener/utterances/889351da290c6e70a53ea72583867bae.wav', 'lang': 'en-us'}
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.357 - skills - ovos_core.intent_services:_handle_transformers:172 - DEBUG - utterances transformed: ["what's the weather like"] -> ["what's the weather like", 'what is the weather like', 'what is weather like']
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.371 - skills - ovos_core.intent_services:get_pipeline:250 - DEBUG - Session pipeline: ['stop_high', 'converse', 'ocp_high', 'padatious_high', 'adapt_high', 'ocp_medium', 'fallback_high', 'stop_medium', 'adapt_medium', 'padatious_medium', 'adapt_low', 'common_qa', 'fallback_medium', 'fallback_low']
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.373 - skills - ovos_core.intent_services:handle_utterance:368 - DEBUG - no match from <bound method StopService.match_stop_high of <ovos_core.intent_services.stop_service.StopService object at 0xffff84d00440>>
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.389 - skills - ovos_core.intent_services:handle_utterance:368 - DEBUG - no match from <bound method ConverseService.converse_with_skills of <ovos_core.intent_services.converse_service.ConverseService object at 0xffff8572f2c0>>
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.893 - skills - padacioso:calc_intent:240 - INFO - No match
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.895 - skills - ovos_core.intent_services:handle_utterance:368 - DEBUG - no match from <bound method OCPPipelineMatcher.match_high of <ovos_core.intent_services.ocp_service.OCPPipelineMatcher object at 0xffff84d02c30>>
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.897 - skills - ovos_core.intent_services.padatious_service:_match_level:50 - DEBUG - Padatious Matching confidence > 0.95
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.910 - skills - ovos_core.intent_services:handle_utterance:368 - DEBUG - no match from <bound method PadatiousMatcher.match_high of <ovos_core.intent_services.padatious_service.PadatiousMatcher object at 0xffff70151eb0>>
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.921 - skills - ovos_core.intent_services:handle_utterance:368 - DEBUG - no match from <bound method AdaptService.match_high of <ovos_core.intent_services.adapt_service.AdaptService object at 0xffff858cdb80>>
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.936 - skills - ovos_core.intent_services.ocp_service:is_ocp_query:1167 - INFO - OVOSCommonPlay prediction: OCP confidence: 0.563
Jun 04 16:19:14 mark2 ovos-core[3160]: 2024-06-04 16:19:14.938 - skills - ovos_core.intent_services.ocp_service:is_ocp_query:1168 - DEBUG -      utterance: what's the weather like
Jun 04 16:19:15 mark2 ovos-core[3160]: 2024-06-04 16:19:15.057 - skills - ovos_core.intent_services.ocp_service:classify_media:1142 - INFO - OVOSCommonPlay MediaType prediction: music confidence: 0.246
Jun 04 16:19:15 mark2 ovos-core[3160]: 2024-06-04 16:19:15.059 - skills - ovos_core.intent_services.ocp_service:classify_media:1143 - DEBUG -      utterance: what's the weather like
Jun 04 16:19:15 mark2 ovos-core[3160]: 2024-06-04 16:19:15.061 - skills - ovos_core.intent_services.ocp_service:classify_media:1145 - INFO - ignoring MediaType classifier, low confidence prediction
Jun 04 16:19:15 mark2 ovos-core[3160]: 2024-06-04 16:19:15.069 - skills - ovos_core.intent_services:handle_utterance:367 - ERROR - <bound method OCPPipelineMatcher.match_medium of <ovos_core.intent_services.ocp_service.OCPPipelineMatcher object at 0xffff84d02c30>> returned an invalid match
Jun 04 16:19:15 mark2 ovos-core[3160]: Traceback (most recent call last):
Jun 04 16:19:15 mark2 ovos-core[3160]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_core/intent_services/__init__.py", line 364, in handle_utterance
Jun 04 16:19:15 mark2 ovos-core[3160]:     self._emit_match_message(match, message)
Jun 04 16:19:15 mark2 ovos-core[3160]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_core/intent_services/__init__.py", line 295, in _emit_match_message
Jun 04 16:19:15 mark2 ovos-core[3160]:     self.bus.emit(reply)
Jun 04 16:19:15 mark2 ovos-core[3160]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_bus_client/client/client.py", line 185, in emit
Jun 04 16:19:15 mark2 ovos-core[3160]:     msg = message.serialize()
Jun 04 16:19:15 mark2 ovos-core[3160]:           ^^^^^^^^^^^^^^^^^^^
Jun 04 16:19:15 mark2 ovos-core[3160]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_bus_client/message.py", line 121, in serialize
Jun 04 16:19:15 mark2 ovos-core[3160]:     msg = orjson.dumps({'type': self.msg_type, 'data': data, 'context': ctxt}).decode("utf-8")
Jun 04 16:19:15 mark2 ovos-core[3160]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 04 16:19:15 mark2 ovos-core[3160]: TypeError: Type is not JSON serializable: numpy.float64
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.18%. Comparing base (5bd3530) to head (b454a36). Report is 1 commits behind head on dev.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #494 +/- ## ======================================= Coverage 73.18% 73.18% ======================================= Files 15 15 Lines 3051 3051 ======================================= Hits 2233 2233 Misses 818 818 ``` | [Flag](https://app.codecov.io/gh/OpenVoiceOS/ovos-core/pull/494/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OpenVoiceOS) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/OpenVoiceOS/ovos-core/pull/494/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OpenVoiceOS) | `73.18% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OpenVoiceOS#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.