Jofthomas HF staff commited on
Commit
697271e
1 Parent(s): 93bbe54

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. TextGen/router.py +2 -2
TextGen/router.py CHANGED
@@ -137,10 +137,10 @@ async def generate_wav(message:VoiceMessage):
137
  audio=handle_file(voice),
138
  api_name="/predict"
139
  )
140
-
141
 
142
  # Get the path of the generated wav file
143
- wav_file_path = result[1]
144
 
145
  # Return the generated wav file as a response
146
  return FileResponse(wav_file_path, media_type="audio/wav", filename="output.wav")
 
137
  audio=handle_file(voice),
138
  api_name="/predict"
139
  )
140
+ print(result)
141
 
142
  # Get the path of the generated wav file
143
+ wav_file_path = result
144
 
145
  # Return the generated wav file as a response
146
  return FileResponse(wav_file_path, media_type="audio/wav", filename="output.wav")