Spaces:
Running
Running
crcdng
commited on
Commit
·
906faa5
1
Parent(s):
1651306
rollback
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool,
|
2 |
import datetime
|
3 |
import requests
|
4 |
import pytz
|
@@ -24,7 +24,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
24 |
|
25 |
final_answer = FinalAnswerTool()
|
26 |
|
27 |
-
model =
|
28 |
max_tokens=2096,
|
29 |
temperature=0.5,
|
30 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct", # it is possible that this model may be overloaded
|
|
|
1 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
2 |
import datetime
|
3 |
import requests
|
4 |
import pytz
|
|
|
24 |
|
25 |
final_answer = FinalAnswerTool()
|
26 |
|
27 |
+
model = HfApiModel(
|
28 |
max_tokens=2096,
|
29 |
temperature=0.5,
|
30 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct", # it is possible that this model may be overloaded
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
markdownify
|
2 |
-
smolagents
|
3 |
requests
|
4 |
duckduckgo_search
|
5 |
pandas
|
|
|
1 |
markdownify
|
2 |
+
smolagents==1.13.0
|
3 |
requests
|
4 |
duckduckgo_search
|
5 |
pandas
|