Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -173,7 +173,7 @@ async def translate_text(text: str,
|
|
173 |
}
|
174 |
return result_dict
|
175 |
|
176 |
-
@app.
|
177 |
async def synthesize(text: str):
|
178 |
model = VitsModel.from_pretrained("facebook/mms-tts-tgl")
|
179 |
tokenizer = VitsTokenizer.from_pretrained("facebook/mms-tts-tgl")
|
|
|
173 |
}
|
174 |
return result_dict
|
175 |
|
176 |
+
@app.post("/synthesize/")
|
177 |
async def synthesize(text: str):
|
178 |
model = VitsModel.from_pretrained("facebook/mms-tts-tgl")
|
179 |
tokenizer = VitsTokenizer.from_pretrained("facebook/mms-tts-tgl")
|