suprabhatdas commited on
Commit
2d71051
·
verified ·
1 Parent(s): 969b8c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent, DuckDuckGoSearchTool, ApiModel, load_tool, tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -243,11 +243,10 @@ final_answer = FinalAnswerTool()
243
  # MODEL
244
  # ---------------------------------------------------
245
 
246
- model = ApiModel(
 
247
  max_tokens=2096,
248
  temperature=0.5,
249
- model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
250
- custom_role_conversions=None,
251
  )
252
 
253
  # ---------------------------------------------------
 
1
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel, load_tool, tool
2
  import datetime
3
  import requests
4
  import pytz
 
243
  # MODEL
244
  # ---------------------------------------------------
245
 
246
+ model = InferenceClientModel(
247
+ model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
248
  max_tokens=2096,
249
  temperature=0.5,
 
 
250
  )
251
 
252
  # ---------------------------------------------------