Spaces:
Runtime error
Runtime error
Commit
·
640852d
1
Parent(s):
38f360b
Update app.py
Browse files
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=("
|
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)
|