Spaces:
Runtime error
Runtime error
Commit
·
dbc3922
1
Parent(s):
5bf7302
update file in chatbot
Browse files
app.py
CHANGED
|
@@ -534,6 +534,7 @@ def chathmi2(message, history):
|
|
| 534 |
temp = response.split("(sandbox:/")[1] # (sandbox:/sample-20230805-0807.wav)
|
| 535 |
file_name = temp.split(")")[0]
|
| 536 |
print("file_name:", file_name)
|
|
|
|
| 537 |
except:
|
| 538 |
pass
|
| 539 |
if len(Audio_output) > 0:
|
|
|
|
| 534 |
temp = response.split("(sandbox:/")[1] # (sandbox:/sample-20230805-0807.wav)
|
| 535 |
file_name = temp.split(")")[0]
|
| 536 |
print("file_name:", file_name)
|
| 537 |
+
yield file_name
|
| 538 |
except:
|
| 539 |
pass
|
| 540 |
if len(Audio_output) > 0:
|