6drf21e / ChatTTS_colab

🚀 一键部署(含离线整合包)!基于 ChatTTS ,支持流式输出、音色抽卡、长音频生成和分角色朗读。简单易用,无需复杂安装。
2.12k stars 266 forks source link

got pydantic.errors.PydanticSchemaGenerationError when run colab #84

Open Yaqing2023 opened 2 months ago

Yaqing2023 commented 2 months ago

when i rn in colab, I got error 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. how to resolve it?

squirrel-stack commented 2 months ago

Hi there, here is an identical issue: https://github.com/vllm-project/vllm/issues/8212

solving the problem by **pip install fastapi==0.112.2**, it works for me

Yaqing2023 commented 2 months ago

you saved my day! really appreciate your help, thanks

On Thu, Sep 5, 2024 at 5:12 PM squirrel-stack @.***> wrote:

Hi there, here is an identical issue: https://github.com/vllm-project/vllm/issues/8212 http://url

solving the problem by pip install fastapi==0.112.2, it works for me

— Reply to this email directly, view it on GitHub https://github.com/6drf21e/ChatTTS_colab/issues/84#issuecomment-2332930644, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7ERBOPEZHPXY34SI76LQSLZVDXPNAVCNFSM6AAAAABNXNE7AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZSHEZTANRUGQ . You are receiving this because you authored the thread.Message ID: @.***>