Spaces:
Build error
Build error
swap out chat functionality
Browse files
app.py
CHANGED
|
@@ -16,11 +16,11 @@ def chat(message, history):
|
|
| 16 |
history.append((message, response))
|
| 17 |
return history, history
|
| 18 |
|
| 19 |
-
|
| 20 |
-
demo = gr.Interface(
|
| 21 |
chat,
|
| 22 |
["text", "state"],
|
| 23 |
-
[chatbot, "state"],
|
|
|
|
| 24 |
allow_flagging="never",
|
| 25 |
)
|
| 26 |
-
|
|
|
|
| 16 |
history.append((message, response))
|
| 17 |
return history, history
|
| 18 |
|
| 19 |
+
iface = gr.Interface(
|
|
|
|
| 20 |
chat,
|
| 21 |
["text", "state"],
|
| 22 |
+
["chatbot", "state"],
|
| 23 |
+
allow_screenshot=False,
|
| 24 |
allow_flagging="never",
|
| 25 |
)
|
| 26 |
+
iface.launch()
|