mkw18 commited on
Commit
4825645
·
1 Parent(s): 9fb94d8

refresh log

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -104,6 +104,7 @@ def reset_user_input():
104
 
105
  def rate_cnt():
106
  global host_cnt
 
107
  host_cnt = {}
108
 
109
  def reset_state(chatbot, messages, answer_output, answerBtn, answer, idx, question, show_ans, request: gr.Request):
@@ -113,6 +114,7 @@ def reset_state(chatbot, messages, answer_output, answerBtn, answer, idx, questi
113
  host_cnt[host] = 1
114
  else:
115
  host_cnt[host] += 1
 
116
  if host_cnt[host] >= 10:
117
  return chatbot, messages, answer_output, answerBtn, answer, idx, question, show_ans
118
  data = {'refresh': ''}
 
104
 
105
  def rate_cnt():
106
  global host_cnt
107
+ print('Resetting count')
108
  host_cnt = {}
109
 
110
  def reset_state(chatbot, messages, answer_output, answerBtn, answer, idx, question, show_ans, request: gr.Request):
 
114
  host_cnt[host] = 1
115
  else:
116
  host_cnt[host] += 1
117
+ print(host_cnt[host])
118
  if host_cnt[host] >= 10:
119
  return chatbot, messages, answer_output, answerBtn, answer, idx, question, show_ans
120
  data = {'refresh': ''}