mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-07 07:02:57 +08:00
chore: 修改status_code
This commit is contained in:
parent
fd04d26f06
commit
d69e5eacd3
2
api.py
2
api.py
@ -490,7 +490,7 @@ def handle(refer_wav_path, prompt_text, prompt_language, text, text_language):
|
||||
torch.mps.empty_cache()
|
||||
return StreamingResponse(wav, media_type="audio/wav")
|
||||
except Exception as e:
|
||||
return JSONResponse({"code": 400, "message": f"error: {e}"}, status_code=400)
|
||||
return JSONResponse({"code": 500, "message": f"error: {e}"}, status_code=500)
|
||||
|
||||
|
||||
app = FastAPI()
|
||||
|
Loading…
x
Reference in New Issue
Block a user