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