Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,12 @@ import yaml
|
|
| 8 |
from smolagents import CodeAgent, WebSearchTool, InferenceClientModel, DuckDuckGoSearchTool, Tool, VisitWebpageTool
|
| 9 |
from tools import visit_webpage, analyze_image # transcribe_audio, analyze_video
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# (Keep Constants as is)
|
| 12 |
# --- Constants ---
|
| 13 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 8 |
from smolagents import CodeAgent, WebSearchTool, InferenceClientModel, DuckDuckGoSearchTool, Tool, VisitWebpageTool
|
| 9 |
from tools import visit_webpage, analyze_image # transcribe_audio, analyze_video
|
| 10 |
|
| 11 |
+
|
| 12 |
+
# This is also a possibility
|
| 13 |
+
#from langchain.agents import load_tools
|
| 14 |
+
|
| 15 |
+
#search_tool = Tool.from_langchain(load_tools(["serpapi"])[0])
|
| 16 |
+
|
| 17 |
# (Keep Constants as is)
|
| 18 |
# --- Constants ---
|
| 19 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|