Tsitsi19 commited on
Commit
f424b43
·
verified ·
1 Parent(s): 45a199d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
app.py CHANGED
@@ -1,19 +1,18 @@
1
  import gradio as gr
2
- from qwen_loader import load_qwen
3
- from telegram_bot import send, handle_update
4
 
5
- QWEN = load_qwen()
 
6
 
7
- def chat(msg):
8
- handle_update(msg)
9
- return "Ordre envoyé au cerveau Qwen."
10
 
11
- ui = gr.Interface(
12
- fn=chat,
13
- inputs="text",
14
- outputs="text",
15
- title="Agent Zéro",
16
- description="Agent contrôlé avec mutations via Telegram."
17
  )
18
 
19
- ui.launch()
 
1
  import gradio as gr
2
+ from agent_zero import AgentZero
 
3
 
4
+ # Initialisation Agent Zéro
5
+ agent = AgentZero()
6
 
7
+ def chat_fn(message):
8
+ return agent.run(message)
 
9
 
10
+ demo = gr.Interface(
11
+ fn=chat_fn,
12
+ inputs=gr.Textbox(lines=2, label="Commande"),
13
+ outputs=gr.Textbox(label="Réponse"),
14
+ title="Agent Zero – Qwen Powered",
15
+ description="Agent autonome exécutant les ordres via Qwen 2.5"
16
  )
17
 
18
+ demo.launch()