Elfe commited on
Commit
7999eb1
1 Parent(s): 84bb9be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -9,6 +9,7 @@ count = 0
9
  # 返回值:[type, content]
10
  # 详见 https://huggingface.co/spaces/baixing/hackathon_test/blob/main/bot-api.md
11
  def chat(p, qid, uid):
 
12
  count = count+1
13
  return ["text", f"{count} 我听到你刚说:{p}"]
14
 
 
9
  # 返回值:[type, content]
10
  # 详见 https://huggingface.co/spaces/baixing/hackathon_test/blob/main/bot-api.md
11
  def chat(p, qid, uid):
12
+ global count
13
  count = count+1
14
  return ["text", f"{count} 我听到你刚说:{p}"]
15