avi080704 commited on
Commit
23b0362
·
verified ·
1 Parent(s): d8021c2

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 pandas as pd
5
 
6
  from smolagents import CodeAgent, DuckDuckGoSearchTool
7
- from smolagents.models import HfApiModel
8
 
9
  # -----------------------------
10
  # Constants
@@ -18,7 +18,7 @@ class BasicAgent:
18
  def __init__(self):
19
 
20
  # Uses your HF token automatically from Space secrets
21
- model = HfApiModel(
22
  model_id="Qwen/Qwen2.5-72B-Instruct"
23
  )
24
 
 
4
  import pandas as pd
5
 
6
  from smolagents import CodeAgent, DuckDuckGoSearchTool
7
+ from smolagents.models import ApiModel
8
 
9
  # -----------------------------
10
  # Constants
 
18
  def __init__(self):
19
 
20
  # Uses your HF token automatically from Space secrets
21
+ model = ApiModel(
22
  model_id="Qwen/Qwen2.5-72B-Instruct"
23
  )
24