Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -380,19 +380,12 @@ with gr.Blocks() as iface:
|
|
380 |
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
381 |
iface.launch()
|
382 |
'''
|
383 |
-
gr.
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
# Corrected line:
|
394 |
-
chatbot = gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, super_intelligence=True, layout="panel")
|
395 |
-
title="FragMixt: Agents With Agents\nDev Playground <br> Agent Lead Development",
|
396 |
-
examples=examples,
|
397 |
-
concurrency_limit=50,
|
398 |
-
).launch(show_api=True)
|
|
|
380 |
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
381 |
iface.launch()
|
382 |
'''
|
383 |
+
with gr.Blocks() as iface:
|
384 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, super_intelligence=True, layout="panel")
|
385 |
+
msg = gr.Textbox()
|
386 |
+
with gr.Row():
|
387 |
+
submit_b = gr.Button()
|
388 |
+
clear = gr.ClearButton([msg, chatbot])
|
389 |
+
submit_b.click(run, [msg,chatbot],[msg,chatbot])
|
390 |
+
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
391 |
+
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|