StefanoSpinelli commited on
Commit
4c4f7cc
·
verified ·
1 Parent(s): de51e82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,WebSearchTool, ApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -41,7 +41,7 @@ web_search = WebSearchTool()
41
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
42
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
43
 
44
- model = ApiModel(
45
  max_tokens=2096,
46
  temperature=0.5,
47
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
 
1
+ from smolagents import CodeAgent,WebSearchTool, LiteLLMModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
 
41
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
42
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
43
 
44
+ model = LiteLLMModel(
45
  max_tokens=2096,
46
  temperature=0.5,
47
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded