File size: 408 Bytes
10e9b7d
3bf7855
 
e80aab9
3bf7855
 
 
 
 
 
 
e80aab9
 
3bf7855
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
from agent import agent  # Import your refactored agent
from Gradio_UI import GradioUI

# Optional: Uncomment to test agent endpoint separately
# def run_agent(question):
#     try:
#         result = agent(question)
#         return [str(result)]
#     except Exception as e:
#         return [f"Error: {e}"]

if __name__ == "__main__":
    GradioUI(agent).launch(debug=True, share=True)