ldhldh commited on
Commit
d7b2553
1 Parent(s): acc816f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -50,11 +50,11 @@ def login(id, pw):
50
  live_user[id] = 50
51
  return "ok"
52
 
53
- def chat(name, text):
54
  if not name in user_data:
55
  return "no id"
56
  else:
57
- chat_history.append({"name": name, "text":text})
58
  return "ok"
59
 
60
  def get_data(name):
@@ -81,7 +81,7 @@ with gr.Blocks() as demo:
81
  count = 0
82
  aa = gr.Interface(
83
  fn=chat,
84
- inputs=["text", "text"],
85
  outputs="text",
86
  description="chat",
87
  )
 
50
  live_user[id] = 50
51
  return "ok"
52
 
53
+ def chat(name, text, time):
54
  if not name in user_data:
55
  return "no id"
56
  else:
57
+ chat_history.append({"name": name, "text":text, "time":time})
58
  return "ok"
59
 
60
  def get_data(name):
 
81
  count = 0
82
  aa = gr.Interface(
83
  fn=chat,
84
+ inputs=["text", "text", "text"],
85
  outputs="text",
86
  description="chat",
87
  )