Spaces:
Sleeping
Sleeping
Download modules/gradio_dcls_fix.py from etgpao/ChatTTS-Forge: direct link, hf CLI and curl.
- Browser
- Download file 215 Bytes
-
https://huggingface.co/spaces/etgpao/ChatTTS-Forge/resolve/main/modules/gradio_dcls_fix.py
- Command line
-
hf download hf://spaces/etgpao/ChatTTS-Forge/modules/gradio_dcls_fix.py
-
curl -L -o gradio_dcls_fix.py https://huggingface.co/spaces/etgpao/ChatTTS-Forge/resolve/main/modules/gradio_dcls_fix.py
215 Bytes
| def dcls_patch(): | |
| from gradio import data_classes | |
| # https://github.com/gradio-app/gradio/pull/8530 | |
| data_classes.PredictBody.__get_pydantic_json_schema__ = lambda x, y: { | |
| "type": "object", | |
| } | |