Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
-
from smolagents import CodeAgent,
|
| 2 |
from smolagents import VisitWebpageTool, WebSearchTool, WikipediaSearchTool, PythonInterpreterTool,FinalAnswerTool
|
| 3 |
|
| 4 |
|
| 5 |
class GaiaAgent:
|
| 6 |
def __init__(self):
|
| 7 |
-
self.model =
|
| 8 |
-
max_tokens =
|
| 9 |
temperature = 0.5,
|
| 10 |
-
model_id =
|
|
|
|
| 11 |
custom_role_conversations=None
|
| 12 |
)
|
| 13 |
#or
|
|
|
|
| 1 |
+
from smolagents import CodeAgent, InferenceClientModel
|
| 2 |
from smolagents import VisitWebpageTool, WebSearchTool, WikipediaSearchTool, PythonInterpreterTool,FinalAnswerTool
|
| 3 |
|
| 4 |
|
| 5 |
class GaiaAgent:
|
| 6 |
def __init__(self):
|
| 7 |
+
self.model = InferenceClientModel(
|
| 8 |
+
max_tokens = 8096,
|
| 9 |
temperature = 0.5,
|
| 10 |
+
model_id = "deepseek-ai/DeepSeek-R1-0528"
|
| 11 |
+
provider = "huggingface" #'https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
| 12 |
custom_role_conversations=None
|
| 13 |
)
|
| 14 |
#or
|