yizhangliu commited on
Commit
640852d
·
1 Parent(s): 38f360b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,12 +25,13 @@ def chat(message, history):
25
  history.append((message, response))
26
  return history, history
27
 
28
- chatbot = gr.Chatbot().style(color_map=("gray", "pink"))
29
  demo = gr.Interface(
30
  chat,
31
  ["text", "state"],
32
  [chatbot, "state"],
33
  allow_flagging="never",
 
34
  )
35
 
36
  demo.launch(debug = True)
 
25
  history.append((message, response))
26
  return history, history
27
 
28
+ chatbot = gr.Chatbot().style(color_map=("green", "gray"))
29
  demo = gr.Interface(
30
  chat,
31
  ["text", "state"],
32
  [chatbot, "state"],
33
  allow_flagging="never",
34
+ live=True
35
  )
36
 
37
  demo.launch(debug = True)