Synnove commited on
Commit
3b78624
·
verified ·
1 Parent(s): 7717b31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  import inspect
5
  import pandas as pd
6
  #import smolagents #to test
7
- from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
8
  from huggingface_hub import InferenceClient
9
  import json
10
  from final_answer import FinalAnswerTool
@@ -48,7 +48,7 @@ def load_questions_from_file(filepath="questions.json"):
48
  #token
49
 
50
  #Model
51
- model = HfApiModel(
52
  max_tokens=2096,
53
  temperature=0.5,
54
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
 
4
  import inspect
5
  import pandas as pd
6
  #import smolagents #to test
7
+ from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, load_tool, tool
8
  from huggingface_hub import InferenceClient
9
  import json
10
  from final_answer import FinalAnswerTool
 
48
  #token
49
 
50
  #Model
51
+ model = InferenceClientModel(
52
  max_tokens=2096,
53
  temperature=0.5,
54
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded