Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -359,22 +359,18 @@ examples = [
|
|
| 359 |
["What are the key differences between SQL and NoSQL databases, and when should I use each type of database?", None, None, None, None, None, ],
|
| 360 |
]
|
| 361 |
|
| 362 |
-
|
| 363 |
gr.ChatInterface(
|
| 364 |
fn=run,
|
| 365 |
title="""Fragmixt: Autonomous Agents With Agents...Surf With a Purpose!""",
|
| 366 |
examples=examples,
|
| 367 |
concurrency_limit=20,
|
| 368 |
-
with gr.Blocks() as
|
| 369 |
gr.HTML("""TEST""")
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
submit_b
|
| 376 |
-
|
| 377 |
-
submit_b.click(run, [msg,chatbot],[msg,chatbot])
|
| 378 |
-
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
| 379 |
-
iface.launch()
|
| 380 |
)
|
|
|
|
| 359 |
["What are the key differences between SQL and NoSQL databases, and when should I use each type of database?", None, None, None, None, None, ],
|
| 360 |
]
|
| 361 |
|
|
|
|
| 362 |
gr.ChatInterface(
|
| 363 |
fn=run,
|
| 364 |
title="""Fragmixt: Autonomous Agents With Agents...Surf With a Purpose!""",
|
| 365 |
examples=examples,
|
| 366 |
concurrency_limit=20,
|
| 367 |
+
with gr.Blocks() as iface:
|
| 368 |
gr.HTML("""TEST""")
|
| 369 |
+
chatbot = gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel")
|
| 370 |
+
msg = gr.Textbox()
|
| 371 |
+
with gr.Row():
|
| 372 |
+
submit_b = gr.Button()
|
| 373 |
+
clear = gr.ClearButton([msg, chatbot])
|
| 374 |
+
submit_b.click(run, [msg, chatbot], [msg, chatbot])
|
| 375 |
+
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
|
|
|
|
|
|
|
|
|
| 376 |
)
|