Shivangsinha commited on
Commit
0fd1749
·
verified ·
1 Parent(s): fb7db6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -6,7 +6,7 @@ import inspect
6
  import pandas as pd
7
  from smolagents import (
8
  CodeAgent,
9
- HfApiModel,
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
- # Qwen2.5-Coder-32B-Instruct is the default and highly recommended for this course
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