Spaces:
Runtime error
Runtime error
Fixing file path for output
Browse files
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
|