Spaces:
Sleeping
Sleeping
mriusero commited on
Commit ·
1a1fadd
1
Parent(s): caab766
fix: HfApiModel update to InferenceClientModel
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent,DuckDuckGoSearchTool,
|
| 2 |
import os
|
| 3 |
import datetime
|
| 4 |
import requests
|
|
@@ -34,7 +34,7 @@ analyze_github_repository = GitHubAnalyzerTool()
|
|
| 34 |
# 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:
|
| 35 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 36 |
|
| 37 |
-
model =
|
| 38 |
max_tokens=2096,
|
| 39 |
temperature=0.5,
|
| 40 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
|
|
|
| 1 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool, InferenceClientModel, load_tool, tool
|
| 2 |
import os
|
| 3 |
import datetime
|
| 4 |
import requests
|
|
|
|
| 34 |
# 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:
|
| 35 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 36 |
|
| 37 |
+
model = InferenceClientModel(
|
| 38 |
max_tokens=2096,
|
| 39 |
temperature=0.5,
|
| 40 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|