import gradio as gr from agents.process_aware_agent import run_agent def chat_fn(message, history): try: return run_agent(message) except Exception as e: return f"Error: {str(e)}" demo = gr.ChatInterface( fn=chat_fn, title="Process-Aware LangGraph Agent", description="Chat with a process-aware LangGraph agent." ) if __name__ == "__main__": demo.launch(server_name="0.0.0.0", server_port=7860, ssr_mode=False, share=False)