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

Add initial orchestration Gradio app

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)