File size: 466 Bytes
ca31f60 b87ddcc ca31f60 b87ddcc ca31f60 b87ddcc ca31f60 a540651 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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) |