Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,6 @@
|
|
| 1 |
-
|
| 2 |
-
from agent import agent # Import your refactored agent
|
| 3 |
from Gradio_UI import GradioUI
|
| 4 |
|
| 5 |
-
# Optional: Uncomment to test agent endpoint separately
|
| 6 |
-
# def run_agent(question):
|
| 7 |
-
# try:
|
| 8 |
-
# result = agent(question)
|
| 9 |
-
# return [str(result)]
|
| 10 |
-
# except Exception as e:
|
| 11 |
-
# return [f"Error: {e}"]
|
| 12 |
-
|
| 13 |
if __name__ == "__main__":
|
| 14 |
-
|
|
|
|
|
|
| 1 |
+
from agent import get_agent
|
|
|
|
| 2 |
from Gradio_UI import GradioUI
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
if __name__ == "__main__":
|
| 5 |
+
agent = get_agent()
|
| 6 |
+
GradioUI(agent).launch()
|