Spaces:
Runtime error
Runtime error
Commit
·
1dfbc55
1
Parent(s):
ab60cf4
correct playsound
Browse files
app.py
CHANGED
|
@@ -792,10 +792,13 @@ def ClearText():
|
|
| 792 |
|
| 793 |
def playsound():
|
| 794 |
global Filename_Chatbot
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
|
|
|
|
|
|
|
|
|
| 799 |
def HMI_Runing():
|
| 800 |
return [gr.update(visible=False), gr.update(visible=True)]
|
| 801 |
|
|
|
|
| 792 |
|
| 793 |
def playsound():
|
| 794 |
global Filename_Chatbot
|
| 795 |
+
try:
|
| 796 |
+
if Filename_Chatbot.split(".")[1] == 'wav':
|
| 797 |
+
soundfilename = Filename_Chatbot
|
| 798 |
+
return soundfilename
|
| 799 |
+
except:
|
| 800 |
+
pass
|
| 801 |
+
|
| 802 |
def HMI_Runing():
|
| 803 |
return [gr.update(visible=False), gr.update(visible=True)]
|
| 804 |
|