acecalisto3 commited on
Commit
4b93ba5
·
verified ·
1 Parent(s): 453d19f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -16
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.ChatInterface(
384
- fn=run,
385
- if app_mode == "Chat App":
386
- st.header("Chat App")
387
- chat_input = st.text_input("Enter your message:")
388
- if st.button("Send"):
389
- response = chat_app_agent.process_input(chat_input)
390
- st.write(f"Agent: {response}")
391
- st.session_state.chat_history.append((chat_input, response))
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()