Spaces:
Runtime error
Runtime error
Commit
·
31b53f0
1
Parent(s):
6234322
fix sound bug
Browse files
app.py
CHANGED
@@ -792,6 +792,8 @@ def clearall():
|
|
792 |
# global memory
|
793 |
# memory_openai.clear()
|
794 |
# memory.clear()
|
|
|
|
|
795 |
return []
|
796 |
|
797 |
def retry(history3):
|
@@ -849,7 +851,8 @@ def playsound():
|
|
849 |
try:
|
850 |
if Filename_Chatbot.split(".")[1] == 'wav':
|
851 |
soundfilename = Filename_Chatbot
|
852 |
-
|
|
|
853 |
except:
|
854 |
pass
|
855 |
|
|
|
792 |
# global memory
|
793 |
# memory_openai.clear()
|
794 |
# memory.clear()
|
795 |
+
global Filename_Chatbot
|
796 |
+
Filename_Chatbot = []
|
797 |
return []
|
798 |
|
799 |
def retry(history3):
|
|
|
851 |
try:
|
852 |
if Filename_Chatbot.split(".")[1] == 'wav':
|
853 |
soundfilename = Filename_Chatbot
|
854 |
+
print("soundfilename:", soundfilename)
|
855 |
+
return gr.update(value = soundfilename)
|
856 |
except:
|
857 |
pass
|
858 |
|