Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|
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 =
|
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
|