Spaces:
Runtime error
Runtime error
from fastapi import UploadFile | |
from pydantic import BaseModel | |
class SynthesisRequest(BaseModel): | |
input_text: str | |
emotion: str | |
class SynthesisResponse(BaseModel): | |
data: str | |
class TransferRequest(BaseModel): | |
input_text: str | |
ref_audio: UploadFile | |
class TransferResponse(BaseModel): | |
data: str | |
class LoginRequest(BaseModel): | |
email: str | |
password: str | |
class LoginResponse(BaseModel): | |
access_token: str | |
class BaseResponse(BaseModel): | |
status: int = 1 | |
message: str = "" | |
result: object = None |