Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -24,12 +24,10 @@ def chat(msg, history):
|
|
24 |
return history, history
|
25 |
|
26 |
chatbot = gr.Chatbot().style(color_map=("red", "blue"))
|
27 |
-
|
|
|
28 |
chat,
|
29 |
["text", "state"],
|
30 |
[chatbot, "state"],
|
31 |
allow_flagging="never",
|
32 |
-
)
|
33 |
-
|
34 |
-
if __name__ == "__main__":
|
35 |
-
demo.launch(debug=True)
|
|
|
24 |
return history, history
|
25 |
|
26 |
chatbot = gr.Chatbot().style(color_map=("red", "blue"))
|
27 |
+
|
28 |
+
gr.Interface(
|
29 |
chat,
|
30 |
["text", "state"],
|
31 |
[chatbot, "state"],
|
32 |
allow_flagging="never",
|
33 |
+
).launch()
|
|
|
|
|
|