acecalisto3 commited on
Commit
5f1d5c4
·
verified ·
1 Parent(s): c3030d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -382,8 +382,17 @@ iface.launch()
382
  '''
383
  gr.ChatInterface(
384
  fn=run,
385
- chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, super-intelligence=True, layout="panel"),
386
- title="Mixtral 46.7B\nMicro-Agent\nInternet Search <br> development test",
 
 
 
 
 
 
 
 
 
387
  examples=examples,
388
  concurrency_limit=50,
389
  ).launch(show_api=True)
 
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)