add fastapi client

This commit is contained in:
iflamed
2024-07-10 23:11:45 +08:00
parent a4ab4ead5f
commit eb53ccbc19
3 changed files with 90 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
# Set inference model
# export MODEL_DIR=pretrained_models/CosyVoice-300M-Instruct
# For development
# fastapi dev --port 6006 fastapi_server.py
# For production deployment
# fastapi run --port 6006 fastapi_server.py
import os
import sys
import io,time