# app.py import gradio as gr import asyncio from chat_agent import SimpleChatAgent agent = SimpleChatAgent() async def async_chat_fn(message, history): return await agent.handle_query(message, history) def chat_fn(message, history): return asyncio.run(async_chat_fn(message, history)) with gr.Blocks(css=""" #title { font-size: 2.2rem; font-weight: bold; text-align: center; margin-bottom: 0.5em; color: #2e3a59; } #desc { font-size: 1.1rem; text-align: center; color: #6c7a92; margin-bottom: 2em; } footer { text-align: center; font-size: 0.9rem; color: #999; margin-top: 2em; } .gradio-container { background-color: #f9fbfc; } """) as demo: gr.Markdown("