vladd19 commited on
Commit
80b7c0b
·
verified ·
1 Parent(s): ba25068

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  from PIL import Image
3
  import datetime
@@ -63,6 +64,7 @@ max_tokens=2096,
63
  temperature=0.5,
64
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
65
  custom_role_conversions=None,
 
66
  )
67
 
68
 
@@ -81,7 +83,7 @@ agent = CodeAgent(
81
  planning_interval=None,
82
  name=None,
83
  description=None,
84
- prompt_templates=prompt_templates
85
  )
86
 
87
 
 
1
+ import os
2
  from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel,load_tool,tool
3
  from PIL import Image
4
  import datetime
 
64
  temperature=0.5,
65
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
66
  custom_role_conversions=None,
67
+ api_key=os.getenv("HF_TOKEN")
68
  )
69
 
70
 
 
83
  planning_interval=None,
84
  name=None,
85
  description=None,
86
+ prompt_templates=prompt_templates,
87
  )
88
 
89