Spaces:
Runtime error
Runtime error
full file name
Browse files
app.py
CHANGED
|
@@ -35,8 +35,8 @@ def fill_input_textbox(history, audio):
|
|
| 35 |
myobj = gTTS(text=trimmed_response, lang='en', slow=False)
|
| 36 |
myobj.save("response.wav")
|
| 37 |
# split audio by / and keep the last element
|
| 38 |
-
audio = audio.split("/")[-1]
|
| 39 |
-
audio = audio + ".wav"
|
| 40 |
history = history + [((audio, ), ('response.wav', ))]
|
| 41 |
print(history)
|
| 42 |
return history
|
|
|
|
| 35 |
myobj = gTTS(text=trimmed_response, lang='en', slow=False)
|
| 36 |
myobj.save("response.wav")
|
| 37 |
# split audio by / and keep the last element
|
| 38 |
+
# audio = audio.split("/")[-1]
|
| 39 |
+
# audio = audio + ".wav"
|
| 40 |
history = history + [((audio, ), ('response.wav', ))]
|
| 41 |
print(history)
|
| 42 |
return history
|