agent-zero-core / app.py
Tsitsi19's picture
Update app.py
3ec8e41 verified
raw
history blame contribute delete
550 Bytes
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")