at1300 commited on
Commit
5d7a4c6
·
verified ·
1 Parent(s): 0fbc1ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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"