pulkitme commited on
Commit
a314b23
·
1 Parent(s): fb5a9ca

simple smolagent with duck duck go search tool and youtube transcription tool

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. questions.txt +8 -0
app.py CHANGED
@@ -10,7 +10,7 @@ from langchain_community.document_loaders import YoutubeLoader
10
 
11
 
12
  #client = genai.Client(api_key=os.getenv("API_KEY"))
13
- model = LiteLLMModel(model_id="gemini/gemini-2.0-flash",
14
  api_key=os.getenv("API_KEY"))
15
  # (Keep Constants as is)
16
  # --- Constants ---
@@ -129,7 +129,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
129
  continue
130
  try:
131
  submitted_answer = agent(question_text)
132
- time.sleep(20)
133
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
134
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
135
  except Exception as e:
 
10
 
11
 
12
  #client = genai.Client(api_key=os.getenv("API_KEY"))
13
+ model = LiteLLMModel(model_id="gemini/gemini-2.5-flash-preview-04-17",
14
  api_key=os.getenv("API_KEY"))
15
  # (Keep Constants as is)
16
  # --- Constants ---
 
129
  continue
130
  try:
131
  submitted_answer = agent(question_text)
132
+ time.sleep(30)
133
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
134
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
135
  except Exception as e:
questions.txt CHANGED
@@ -1,8 +1,13 @@
1
  How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia.
 
2
  "In the video https://www.youtube.com/watch?v=L1vXCYZAYYM, what is the highest number of bird species to be on camera simultaneously?"
 
3
  ".rewsna eht sa ""tfel"" drow eht fo etisoppo eht etirw ,ecnetnes siht dnatsrednu uoy fI"
 
4
  Review the chess position provided in the image. It is black's turn. Provide the correct next move for black which guarantees a win. Please provide your response in algebraic notation.
 
5
  Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?
 
6
  "Given this table defining * on the set S = {a, b, c, d, e}
7
 
8
  |*|a|b|c|d|e|
@@ -17,6 +22,9 @@ provide the subset of S involved in any possible counter-examples that prove * i
17
  "Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.
18
 
19
  What does Teal'c say in response to the question ""Isn't that hot?"""
 
 
 
20
  What is the surname of the equine veterinarian mentioned in 1.E Exercises from the chemistry materials licensed by Marisa Alviar-Agnew & Henry Agnew under the CK-12 license in LibreText's Introductory Chemistry materials as compiled 08/21/2023?
21
  "I'm making a grocery list for my mom, but she's a professor of botany and she's a real stickler when it comes to categorizing things. I need to add different foods to different categories on the grocery list, but if I make a mistake, she won't buy anything inserted in the wrong category. Here's the list I have so far:
22
 
 
1
  How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia.
2
+
3
  "In the video https://www.youtube.com/watch?v=L1vXCYZAYYM, what is the highest number of bird species to be on camera simultaneously?"
4
+
5
  ".rewsna eht sa ""tfel"" drow eht fo etisoppo eht etirw ,ecnetnes siht dnatsrednu uoy fI"
6
+
7
  Review the chess position provided in the image. It is black's turn. Provide the correct next move for black which guarantees a win. Please provide your response in algebraic notation.
8
+
9
  Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?
10
+
11
  "Given this table defining * on the set S = {a, b, c, d, e}
12
 
13
  |*|a|b|c|d|e|
 
22
  "Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.
23
 
24
  What does Teal'c say in response to the question ""Isn't that hot?"""
25
+
26
+
27
+
28
  What is the surname of the equine veterinarian mentioned in 1.E Exercises from the chemistry materials licensed by Marisa Alviar-Agnew & Henry Agnew under the CK-12 license in LibreText's Introductory Chemistry materials as compiled 08/21/2023?
29
  "I'm making a grocery list for my mom, but she's a professor of botany and she's a real stickler when it comes to categorizing things. I need to add different foods to different categories on the grocery list, but if I make a mistake, she won't buy anything inserted in the wrong category. Here's the list I have so far:
30