Tonic commited on
Commit
770ea37
1 Parent(s): 603805b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -201,13 +201,13 @@ def convert_text_to_speech(input_text: str, source_language: str, target_languag
201
  try:
202
  # Make a prediction request to the client
203
  result = client.predict(
204
- task_name="T2ST",
205
- audio_source="text", # Since we are doing text-to-speech
206
- input_audio_mic=None,
207
- input_audio_file=None,
208
- input_text=input_text,
209
- source_language=source_language,
210
- target_language=target_language,
211
  api_name="/run"
212
  )
213
 
 
201
  try:
202
  # Make a prediction request to the client
203
  result = client.predict(
204
+ "T2ST",
205
+ "text", # Since we are doing text-to-speech
206
+ None,
207
+ None,
208
+ input_text,
209
+ source_language,
210
+ target_language,
211
  api_name="/run"
212
  )
213