bako96 commited on
Commit
47aad6f
·
verified ·
1 Parent(s): 856fe31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,11 +18,11 @@ def get_youtube_channel_info(channel_name: str) -> str:
18
  # Use DuckDuckGoSearchTool to search for the YouTube channel
19
  search_tool = DuckDuckGoSearchTool()
20
  query = f"{channel_name} YouTube channel information"
21
- print(f"Searching for: {query}") # Debug print statement
22
  search_results = search_tool(query)
23
 
24
  # Print all search results for debugging
25
- print(f"Search results for '{channel_name}': {search_results}")
26
 
27
  # Extract and return the top result
28
  if search_results and len(search_results) > 0:
@@ -72,7 +72,7 @@ with open("prompts.yaml", 'r') as stream:
72
 
73
  agent = CodeAgent(
74
  model=model,
75
- tools=[final_answer, get_youtube_channel_info, get_current_time_in_timezone], # Add tools here
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,
 
18
  # Use DuckDuckGoSearchTool to search for the YouTube channel
19
  search_tool = DuckDuckGoSearchTool()
20
  query = f"{channel_name} YouTube channel information"
21
+ #print(f"Searching for: {query}") # Debug print statement
22
  search_results = search_tool(query)
23
 
24
  # Print all search results for debugging
25
+ #print(f"Search results for '{channel_name}': {search_results}")
26
 
27
  # Extract and return the top result
28
  if search_results and len(search_results) > 0:
 
72
 
73
  agent = CodeAgent(
74
  model=model,
75
+ tools=[get_youtube_channel_info, get_current_time_in_timezone, final_answer,], # Add tools here
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,