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

add heart beat

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1502,9 +1502,9 @@ def Text2Sound_HMI():
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 = ""
 
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
+ yield Running_history
1508
 
1509
  global last_answer
1510
  last_answer = ""