Spaces:
Running
Running
File size: 408 Bytes
21eddb8 dca51c4 cd8644c dca51c4 cd8644c dca51c4 |
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) |