OuroborosM commited on
Commit
3744ac2
·
1 Parent(s): 31b53f0

fix sound 2

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -853,8 +853,10 @@ def playsound():
853
  soundfilename = Filename_Chatbot
854
  print("soundfilename:", soundfilename)
855
  return gr.update(value = soundfilename)
856
- except:
857
- pass
 
 
858
 
859
  def HMI_Runing():
860
  return [gr.update(visible=False), gr.update(visible=True)]
 
853
  soundfilename = Filename_Chatbot
854
  print("soundfilename:", soundfilename)
855
  return gr.update(value = soundfilename)
856
+ except Exception as e:
857
+ print("error:", e)
858
+ return None
859
+
860
 
861
  def HMI_Runing():
862
  return [gr.update(visible=False), gr.update(visible=True)]