rbcurzon commited on
Commit
fb4506a
·
verified ·
1 Parent(s): ae2487c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -173,7 +173,7 @@ async def translate_text(text: str,
173
  }
174
  return result_dict
175
 
176
- @app.get("/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")
 
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")