|
@@ -14,6 +14,7 @@ from pydantic import BaseModel
|
|
|
|
|
|
class TTS(BaseModel):
|
|
class TTS(BaseModel):
|
|
txt: str
|
|
txt: str
|
|
|
|
+ num: str
|
|
# description: Optional[str] = None
|
|
# description: Optional[str] = None
|
|
# price: float
|
|
# price: float
|
|
# tax: Optional[float] = None
|
|
# tax: Optional[float] = None
|
|
@@ -23,6 +24,7 @@ app = FastAPI()
|
|
@app.post("/tts")
|
|
@app.post("/tts")
|
|
async def run_tts(item: TTS):
|
|
async def run_tts(item: TTS):
|
|
print(item.txt)
|
|
print(item.txt)
|
|
|
|
+ print(item.num)
|
|
return {"OK": "200"}
|
|
return {"OK": "200"}
|
|
|
|
|
|
|
|
|