Mahmoud Amiri
commited on
Commit
·
f052f35
1
Parent(s):
423435a
Fix Chatbot type to match ChatInterface
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def respond(
|
|
| 31 |
|
| 32 |
chatbot = gr.ChatInterface(
|
| 33 |
respond,
|
| 34 |
-
chatbot=gr.Chatbot(),
|
| 35 |
textbox=gr.Textbox(placeholder="Paste abstract of a chemistry paper...", container=False, scale=7),
|
| 36 |
additional_inputs=[
|
| 37 |
gr.Textbox(value="Summarize this chemistry paper abstract:", label="System message"),
|
|
|
|
| 31 |
|
| 32 |
chatbot = gr.ChatInterface(
|
| 33 |
respond,
|
| 34 |
+
chatbot=gr.Chatbot(type="messages"),
|
| 35 |
textbox=gr.Textbox(placeholder="Paste abstract of a chemistry paper...", container=False, scale=7),
|
| 36 |
additional_inputs=[
|
| 37 |
gr.Textbox(value="Summarize this chemistry paper abstract:", label="System message"),
|