Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent,DuckDuckGoSearchTool,HfApiModel,
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
@@ -46,10 +46,10 @@ web_search = DuckDuckGoSearchTool()
|
|
| 46 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
| 47 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 48 |
|
| 49 |
-
model =
|
| 50 |
max_tokens=4080,
|
| 51 |
temperature=0.5,
|
| 52 |
-
model_id='
|
| 53 |
custom_role_conversions=None,
|
| 54 |
)
|
| 55 |
|
|
|
|
| 1 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool,HfApiModel,load_tool,tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
|
|
| 46 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
| 47 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 48 |
|
| 49 |
+
model = HfApiModel(
|
| 50 |
max_tokens=4080,
|
| 51 |
temperature=0.5,
|
| 52 |
+
model_id='unsloth/gemma-3-27b-it-unsloth-bnb-4bit',# it is possible that this model may be overloaded
|
| 53 |
custom_role_conversions=None,
|
| 54 |
)
|
| 55 |
|