Spaces:
Running
Running
Download modules/api/impl/ping_api.py from wffcyrus/ChatTTS-Forge: direct link, hf CLI and curl.
- Browser
- Download file 444 Bytes
-
https://huggingface.co/spaces/wffcyrus/ChatTTS-Forge/resolve/main/modules/api/impl/ping_api.py
- Command line
-
hf download hf://spaces/wffcyrus/ChatTTS-Forge/modules/api/impl/ping_api.py
-
curl -L -o ping_api.py https://huggingface.co/spaces/wffcyrus/ChatTTS-Forge/resolve/main/modules/api/impl/ping_api.py
444 Bytes
| from modules.api import utils as api_utils | |
| from modules.api.Api import APIManager | |
| from modules import config | |
| def setup(app: APIManager): | |
| async def ping(): | |
| return api_utils.success_response("pong") | |
| async def get_versions(): | |
| return api_utils.success_response(config.versions.to_dict()) | |