rohan13 commited on
Commit
47c71f9
β€’
1 Parent(s): b2e67d3

Fixing file path for output

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ def fill_input_textbox(history, audio):
34
  trimmed_response = response.split("SOURCES:")[0]
35
  myobj = gTTS(text=trimmed_response, lang='en', slow=False)
36
  myobj.save("response.wav")
 
37
  history = history + [((audio, ), ('response.wav', ))]
38
  print(history)
39
  return history
 
34
  trimmed_response = response.split("SOURCES:")[0]
35
  myobj = gTTS(text=trimmed_response, lang='en', slow=False)
36
  myobj.save("response.wav")
37
+ audio = audio + ".wav"
38
  history = history + [((audio, ), ('response.wav', ))]
39
  print(history)
40
  return history