Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,17 @@ from smolagents import CodeAgent, HfApiModel
|
|
| 5 |
from smolagents.tools import tool
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
from Gradio_UI import GradioUI
|
|
|
|
|
|
|
|
|
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# -----------------------------
|
| 10 |
# ✅ Define tools directly here
|
| 11 |
# -----------------------------
|
|
|
|
| 5 |
from smolagents.tools import tool
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
from Gradio_UI import GradioUI
|
| 8 |
+
import datetime
|
| 9 |
+
import pytz
|
| 10 |
+
import yaml
|
| 11 |
|
| 12 |
+
# ✅ This is the CORRECT and SIMPLE agent
|
| 13 |
+
from smolagents.agents import CodeAgent
|
| 14 |
+
from smolagents import HfApiModel
|
| 15 |
+
from smolagents.tools import tool
|
| 16 |
+
|
| 17 |
+
from tools.final_answer import FinalAnswerTool
|
| 18 |
+
from Gradio_UI import GradioUI
|
| 19 |
# -----------------------------
|
| 20 |
# ✅ Define tools directly here
|
| 21 |
# -----------------------------
|