navodit17 commited on
Commit
87a73f9
·
1 Parent(s): 396f5a0

agent with search, file read, youtube v1 - requirements

Browse files
Files changed (3) hide show
  1. agent.py +2 -2
  2. app.py +1 -1
  3. requirements.txt +11 -1
agent.py CHANGED
@@ -17,8 +17,8 @@ openai_nano_model = OpenAIServerModel(
17
  gaia_agent = CodeAgent(
18
  model=openai_nano_model,
19
  tools=[fetch_webpage, DuckDuckGoSearchTool(), PythonInterpreterTool(), read_file_tool, get_youtube_transcript], # WikipediaSearchTool(), VisitWebpageTool(max_output_length=60000)
20
- max_steps=5,
21
- verbosity_level=2,
22
  additional_authorized_imports=["requests", "bs4", "pandas", "numpy", "markdownify"]
23
  )
24
 
 
17
  gaia_agent = CodeAgent(
18
  model=openai_nano_model,
19
  tools=[fetch_webpage, DuckDuckGoSearchTool(), PythonInterpreterTool(), read_file_tool, get_youtube_transcript], # WikipediaSearchTool(), VisitWebpageTool(max_output_length=60000)
20
+ max_steps=7,
21
+ # verbosity_level=2,
22
  additional_authorized_imports=["requests", "bs4", "pandas", "numpy", "markdownify"]
23
  )
24
 
app.py CHANGED
@@ -77,7 +77,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
77
  results_log = []
78
  answers_payload = []
79
  print(f"Running agent on {len(questions_data)} questions...")
80
- to_answer = [1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
81
  for index, item in enumerate(questions_data):
82
 
83
  if index + 1 in to_answer:
 
77
  results_log = []
78
  answers_payload = []
79
  print(f"Running agent on {len(questions_data)} questions...")
80
+ to_answer = [1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20]
81
  for index, item in enumerate(questions_data):
82
 
83
  if index + 1 in to_answer:
requirements.txt CHANGED
@@ -1,2 +1,12 @@
1
  gradio
2
- requests
 
 
 
 
 
 
 
 
 
 
 
1
  gradio
2
+ gradio[oauth]
3
+ requests
4
+ pandas
5
+ numpy
6
+ python-dotenv
7
+ smolagents
8
+ smolagents[openai]
9
+ youtube-transcript-api
10
+ beautifulsoup4
11
+ markdownify
12
+ duckduckgo-search