correct cleaner botton
Browse files
app.py
CHANGED
@@ -59,14 +59,13 @@ def chat(message, history):
|
|
59 |
return history, history
|
60 |
|
61 |
|
62 |
-
|
63 |
-
chat,
|
64 |
-
["text", "state"],
|
65 |
-
["chatbot", "state"],
|
66 |
theme="huggingface",
|
|
|
|
|
|
|
67 |
title=title,
|
68 |
description=description,
|
69 |
-
examples=[["What are you doing?"], ["Where would you like to travel?"]],
|
70 |
allow_flagging="never",
|
71 |
-
)
|
72 |
-
iface.launch()
|
|
|
59 |
return history, history
|
60 |
|
61 |
|
62 |
+
gr.Interface(
|
63 |
+
fn=chat,
|
|
|
|
|
64 |
theme="huggingface",
|
65 |
+
css=".footer {display:none !important}",
|
66 |
+
inputs=["text", "state"],
|
67 |
+
outputs=["chatbot", "state"],
|
68 |
title=title,
|
69 |
description=description,
|
|
|
70 |
allow_flagging="never",
|
71 |
+
).launch()
|
|