gpt-omni / mini-omni

open-source multimodal large language model that can hear, talk while thinking. Featuring real-time end-to-end speech input and streaming audio output conversational capabilities.
https://arxiv.org/abs/2408.16725
MIT License
3.06k stars 273 forks source link

gradio web report error after recording #69

Closed Emotibot5 closed 1 month ago

Emotibot5 commented 1 month ago

85|omni_gr | File "/home/ops/anaconda3/envs/omni/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1378, in _union_schema 85|omni_gr | choices.append(self.generate_schema(arg)) 85|omni_gr | File "/home/ops/anaconda3/envs/omni/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 655, in generate_schema 85|omni_gr | schema = self._generate_schema_inner(obj) 85|omni_gr | File "/home/ops/anaconda3/envs/omni/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 929, in _generate_schema_inner 85|omni_gr | return self.match_type(obj) 85|omni_gr | File "/home/ops/anaconda3/envs/omni/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1038, in match_type 85|omni_gr | return self._unknown_type_schema(obj) 85|omni_gr | File "/home/ops/anaconda3/envs/omni/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 558, in _unknown_type_schema 85|omni_gr | raise PydanticSchemaGenerationError( 85|omni_gr | pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set arbitrary_types_allowed=True in the model_config to ignore this error or implement __get_pydantic_core_schema__ on your type to fully support it. 85|omni_gr | 85|omni_gr | If you got this error by calling handler() within __get_pydantic_core_schema__ then you likely need to call handler.generate_schema(<some type>) since we do not call __get_pydantic_core_schema__ on <some type> otherwise to avoid infinite recursion. 85|omni_gr | 85|omni_gr | For further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type