Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import inspect
|
|
| 6 |
import pandas as pd
|
| 7 |
from smolagents import (
|
| 8 |
CodeAgent,
|
| 9 |
-
|
| 10 |
DuckDuckGoSearchTool,
|
| 11 |
WikipediaSearchTool,
|
| 12 |
PythonInterpreterTool,
|
|
@@ -27,9 +27,8 @@ class BasicAgent:
|
|
| 27 |
def __init__(self):
|
| 28 |
print("BasicAgent initialized.")
|
| 29 |
|
| 30 |
-
# Using Hugging Face's free Serverless Inference API
|
| 31 |
-
#
|
| 32 |
-
self.model = HfApiModel(
|
| 33 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 34 |
)
|
| 35 |
|
|
|
|
| 6 |
import pandas as pd
|
| 7 |
from smolagents import (
|
| 8 |
CodeAgent,
|
| 9 |
+
InferenceClientModel, # <-- Updated here
|
| 10 |
DuckDuckGoSearchTool,
|
| 11 |
WikipediaSearchTool,
|
| 12 |
PythonInterpreterTool,
|
|
|
|
| 27 |
def __init__(self):
|
| 28 |
print("BasicAgent initialized.")
|
| 29 |
|
| 30 |
+
# Using Hugging Face's free Serverless Inference API with the updated class name
|
| 31 |
+
self.model = InferenceClientModel( # <-- Updated here
|
|
|
|
| 32 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 33 |
)
|
| 34 |
|