Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -382,8 +382,17 @@ iface.launch()
|
|
382 |
'''
|
383 |
gr.ChatInterface(
|
384 |
fn=run,
|
385 |
-
|
386 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|