Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,13 @@ class BasicAgent:
|
|
18 |
print("ENV-HF_TOKEN-LEN", len(os.getenv("HF_TOKEN", "")), file=sys.stderr)
|
19 |
|
20 |
# Initialize the model
|
21 |
-
model = HfApiModel(model_id="deepseek-ai/DeepSeek-V3-0324",
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
23 |
# Initialize the tools other than the base tools
|
24 |
# See list of base tools in https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py
|
25 |
|
|
|
18 |
print("ENV-HF_TOKEN-LEN", len(os.getenv("HF_TOKEN", "")), file=sys.stderr)
|
19 |
|
20 |
# Initialize the model
|
21 |
+
model = HfApiModel(model_id="deepseek-ai/DeepSeek-V3-0324",
|
22 |
+
format="text-generation",
|
23 |
+
token=os.environ["HF_TOKEN"],
|
24 |
+
max_tokens=2048,
|
25 |
+
temperature=0.0
|
26 |
+
)
|
27 |
+
|
28 |
# Initialize the tools other than the base tools
|
29 |
# See list of base tools in https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py
|
30 |
|