Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import base64
|
|
| 12 |
import urllib.request
|
| 13 |
|
| 14 |
from huggingface_hub import InferenceClient
|
| 15 |
-
from smolagents import CodeAgent,
|
| 16 |
from smolagents import DuckDuckGoSearchTool, VisitWebpageTool
|
| 17 |
|
| 18 |
|
|
@@ -278,7 +278,7 @@ def build_agent() -> CodeAgent:
|
|
| 278 |
- read_task_file : download & parse task attachments
|
| 279 |
(PDF, CSV, Excel, text, image, audio, video)
|
| 280 |
"""
|
| 281 |
-
model =
|
| 282 |
model_id="Qwen/Qwen2.5-72B-Instruct",
|
| 283 |
token=os.getenv("HF_API_TOKEN"),
|
| 284 |
)
|
|
|
|
| 12 |
import urllib.request
|
| 13 |
|
| 14 |
from huggingface_hub import InferenceClient
|
| 15 |
+
from smolagents import CodeAgent, InferenceClientModel, tool
|
| 16 |
from smolagents import DuckDuckGoSearchTool, VisitWebpageTool
|
| 17 |
|
| 18 |
|
|
|
|
| 278 |
- read_task_file : download & parse task attachments
|
| 279 |
(PDF, CSV, Excel, text, image, audio, video)
|
| 280 |
"""
|
| 281 |
+
model = InferenceClientModel(
|
| 282 |
model_id="Qwen/Qwen2.5-72B-Instruct",
|
| 283 |
token=os.getenv("HF_API_TOKEN"),
|
| 284 |
)
|