ScottzillaSystems commited on
Commit
be18aae
·
verified ·
1 Parent(s): f669ad6

Fix: replace broken Chatbot with minimal working Gradio 6.0 app

Browse files
Files changed (1) hide show
  1. app.py +16 -11
app.py CHANGED
@@ -1,20 +1,25 @@
1
  import gradio as gr
2
 
3
- def orchestrator_interface():
 
4
  with gr.Blocks(title="Agent Zero Orchestrator") as demo:
5
- gr.Markdown("# Agent Zero Orchestrator")
6
  gr.Markdown("Orchestrate multiple Agent Zero instances with uncensored models.")
7
- with gr.Tab("Chat"):
8
- chatbot = gr.Chatbot(type="messages")
9
- msg = gr.Textbox(label="Message")
10
- def respond(message, chat_history):
11
- response = f"Orchestrator received: {message}"
12
- return response
13
- msg.submit(respond, [msg, chatbot], [chatbot])
14
  with gr.Tab("Status"):
15
- gr.Markdown("Space is running.")
 
 
 
 
 
 
16
  return demo
17
 
18
  if __name__ == "__main__":
19
- demo = orchestrator_interface()
20
  demo.launch(server_name="0.0.0.0", server_port=7860)
 
1
  import gradio as gr
2
 
3
+ def create_ui():
4
+ """Minimal Gradio 6.0 compatible interface for Agent Zero Orchestrator"""
5
  with gr.Blocks(title="Agent Zero Orchestrator") as demo:
6
+ gr.Markdown("# 🚀 Agent Zero Orchestrator")
7
  gr.Markdown("Orchestrate multiple Agent Zero instances with uncensored models.")
8
+
9
+ with gr.Tab("Orchestrator"):
10
+ gr.Markdown("""### Agent Zero Orchestrator is operational.
11
+ This Space serves as the orchestration hub for the Agent Zero ecosystem.""")
12
+
 
 
13
  with gr.Tab("Status"):
14
+ status_text = """### System Status
15
+ ✅ All systems operational
16
+
17
+ - **Task Queue**: Ready
18
+ - **Agent Pool**: Available
19
+ - **Model Endpoint**: Online"""
20
+ gr.Markdown(status_text)
21
  return demo
22
 
23
  if __name__ == "__main__":
24
+ demo = create_ui()
25
  demo.launch(server_name="0.0.0.0", server_port=7860)