Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
# Google gemini
|
| 6 |
# from litellm import LiteLLMModel, RateLimitError
|
| 7 |
|
|
@@ -11,23 +9,19 @@ import yaml
|
|
| 11 |
import os
|
| 12 |
import pytz # Not allowed for some reason
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
# Tools
|
| 17 |
from tools.final_answer import FinalAnswerTool
|
| 18 |
from tools.polite_guard import PoliteGuardTool
|
| 19 |
|
| 20 |
-
# from tools
|
| 21 |
-
|
| 22 |
# from tools.web_search import DuckDuckGoSearchTool
|
| 23 |
|
| 24 |
|
| 25 |
from Gradio_UI import GradioUI
|
| 26 |
|
| 27 |
-
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 28 |
|
| 29 |
|
| 30 |
-
|
|
|
|
| 31 |
@tool
|
| 32 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 33 |
|
|
|
|
| 1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
|
|
|
|
|
|
|
| 3 |
# Google gemini
|
| 4 |
# from litellm import LiteLLMModel, RateLimitError
|
| 5 |
|
|
|
|
| 9 |
import os
|
| 10 |
import pytz # Not allowed for some reason
|
| 11 |
|
|
|
|
|
|
|
| 12 |
# Tools
|
| 13 |
from tools.final_answer import FinalAnswerTool
|
| 14 |
from tools.polite_guard import PoliteGuardTool
|
| 15 |
|
|
|
|
|
|
|
| 16 |
# from tools.web_search import DuckDuckGoSearchTool
|
| 17 |
|
| 18 |
|
| 19 |
from Gradio_UI import GradioUI
|
| 20 |
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
+
|
| 24 |
+
# Don't use: there's an issue with pytz and it seems like its being blocked by HF
|
| 25 |
@tool
|
| 26 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 27 |
|