File size: 550 Bytes
45a199d
f424b43
45a199d
3ec8e41
 
f424b43
45a199d
3ec8e41
 
45a199d
3ec8e41
9a6e0fe
3ec8e41
 
 
 
45a199d
 
9a6e0fe
9a59e0e
9a6e0fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr
from agent_zero import AgentZero

# Initialisation UNIQUE au lancement
print("Démarrage du cerveau Qwen...")
agent = AgentZero()

def respond(message, history):
    return agent.run(message)

# Utilisation de ChatInterface (Standard Gradio 5)
demo = gr.ChatInterface(
    fn=respond,
    title="CENTRE DE COMMANDEMENT AGENT ZÉRO",
    description="Connecté localement à Qwen 2.5-0.5B-Instruct",
    examples=["Qui es-tu ?", "Analyse le fichier app.py"]
)

if __name__ == "__main__":
    demo.launch(server_name="0.0.0.0")