OuroborosM commited on
Commit
1dfbc55
·
1 Parent(s): ab60cf4

correct playsound

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -792,10 +792,13 @@ def ClearText():
792
 
793
  def playsound():
794
  global Filename_Chatbot
795
- if Filename_Chatbot.split(".")[1] == 'wav':
796
- soundfilename = Filename_Chatbot
797
- return soundfilename
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