Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from smolagents import (
|
| 2 |
CodeAgent,
|
| 3 |
DuckDuckGoSearchTool,
|
| 4 |
-
|
| 5 |
load_tool,
|
| 6 |
tool,
|
| 7 |
)
|
|
@@ -31,8 +31,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 31 |
|
| 32 |
final_answer = FinalAnswerTool()
|
| 33 |
|
| 34 |
-
model =
|
| 35 |
-
|
| 36 |
temperature=0.5,
|
| 37 |
max_tokens=2048,
|
| 38 |
)
|
|
|
|
| 1 |
from smolagents import (
|
| 2 |
CodeAgent,
|
| 3 |
DuckDuckGoSearchTool,
|
| 4 |
+
HuggingFaceInferenceModel,
|
| 5 |
load_tool,
|
| 6 |
tool,
|
| 7 |
)
|
|
|
|
| 31 |
|
| 32 |
final_answer = FinalAnswerTool()
|
| 33 |
|
| 34 |
+
model = HuggingFaceInferenceModel(
|
| 35 |
+
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 36 |
temperature=0.5,
|
| 37 |
max_tokens=2048,
|
| 38 |
)
|