Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
lenML/ChatTTS-Forge
lalalic
/
chattts
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
d8e7d56
chattts
/
modules
/
api
/
impl
/
ping_api.py
zhzluke96
update
02e90e4
8 months ago
raw
Copy download link
history
blame
Safe
247 Bytes
from
modules.api
import
utils
as
api_utils
from
modules.api.Api
import
APIManager
def
setup
(
app: APIManager
):
@app.get(
"/v1/ping"
, response_model=api_utils.BaseResponse
)
async
def
ping
():
return
{
"message"
:
"ok"
,
"data"
:
"pong"
}