keynes42 commited on
Commit
d8149f1
·
verified ·
1 Parent(s): 8ffabaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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", token=os.environ["HF_TOKEN"], max_tokens=2048)
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