Spaces:
Sleeping
Sleeping
Qscar KIM commited on
Commit ·
c62d245
1
Parent(s): ad4f10e
update codes
Browse files
app.py
CHANGED
|
@@ -8,6 +8,9 @@ import re
|
|
| 8 |
|
| 9 |
from smolagents import CodeAgent, InferenceClientModel, Tool
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
# --- Custom Tool Definition ---
|
| 12 |
class DuckDuckGoSearchTool(Tool):
|
| 13 |
name = "web_search"
|
|
|
|
| 8 |
|
| 9 |
from smolagents import CodeAgent, InferenceClientModel, Tool
|
| 10 |
|
| 11 |
+
# --- Constants ---
|
| 12 |
+
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 13 |
+
|
| 14 |
# --- Custom Tool Definition ---
|
| 15 |
class DuckDuckGoSearchTool(Tool):
|
| 16 |
name = "web_search"
|