OuroborosM commited on
Commit
cce1770
·
1 Parent(s): 02a524a

add update loader func

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -1501,6 +1501,11 @@ def Text2Sound_HMI():
1501
  # print("playsound error:", e)
1502
  # return None
1503
 
 
 
 
 
 
1504
  global last_answer
1505
  last_answer = ""
1506
 
@@ -1657,6 +1662,10 @@ with gr.Blocks() as demo:
1657
  # voice_output.play(clear_voice, None, None)
1658
 
1659
  # demo.load(read_logs, None, logs, every=1)
 
 
 
 
1660
 
1661
 
1662
  # demo = gr.Interface(
 
1501
  # print("playsound error:", e)
1502
  # return None
1503
 
1504
+ def UpdateChatbot(Running_history):
1505
+ # timestr = time.strftime("%Y%m%d-%H%M%S")
1506
+ # Running_history = Running_history + [(None, timestr)]
1507
+ return Running_history
1508
+
1509
  global last_answer
1510
  last_answer = ""
1511
 
 
1662
  # voice_output.play(clear_voice, None, None)
1663
 
1664
  # demo.load(read_logs, None, logs, every=1)
1665
+ demo.load(UpdateChatbot, chatbot, chatbot, every=5)
1666
+
1667
+
1668
+
1669
 
1670
 
1671
  # demo = gr.Interface(