Gradio components for PraisonAI multi-agent framework.
pip install gradio-praisonaifrom gradio_praisonai import launch_chat
# Launch a chat interface
launch_chat()Create a Gradio Blocks interface:
from gradio_praisonai import create_chat_interface
demo = create_chat_interface(
api_url="http://localhost:8080",
agent="researcher", # Optional: specific agent
title="🤖 AI Assistant",
)
demo.launch()Direct API client:
from gradio_praisonai import PraisonAIClient
client = PraisonAIClient(api_url="http://localhost:8080")
# Run full workflow
result = client.run_workflow("Research AI trends")
# Run specific agent
result = client.run_agent("Write an article", "writer")
# List agents
agents = client.list_agents()Start PraisonAI server:
pip install praisonai
praisonai serve agents.yaml --port 8080MIT