su3su2u1 commited on
Commit
7135f1d
·
unverified ·
1 Parent(s): b679b6b

Add openpyxl dependency

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -0
  2. theagent.py +2 -2
requirements.txt CHANGED
@@ -2,3 +2,4 @@ gradio
2
  requests
3
  smolagents[openai,transformers,audio]
4
  transformers
 
 
2
  requests
3
  smolagents[openai,transformers,audio]
4
  transformers
5
+ openpyxl
theagent.py CHANGED
@@ -27,7 +27,7 @@ cache = {
27
  "Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.": "Extremely", # correct
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?": "Louvrier", # correct
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:": "wrong", # wrong
30
- "Hi, I'm making a pie but I could use some help with my shopping list. I have everything I need for the crust, but I'm not sure about the filling.": None, # wrong
31
  "Who did the actor who played Ray in the Polish-language version of Everybody Loves Raymond play in Magda M.? Give only the first name.": "Wojciech", # correct
32
  "What is the final numeric output from the attached Python code?": "0", # correct
33
  "How many at bats did the Yankee with the most walks in the 1977 regular season have that same season?": "519", # correct
@@ -47,7 +47,7 @@ class ExecutePythonTool(Tool):
47
  output_type = "string"
48
 
49
  def __init__(self, *args, authorized_imports=None, **kwargs):
50
- self.python_interpreter = PythonInterpreterTool()
51
  self.inputs = {
52
  "file_path": {
53
  "type": "string",
 
27
  "Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.": "Extremely", # correct
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?": "Louvrier", # correct
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:": "wrong", # wrong
30
+ "Hi, I'm making a pie but I could use some help with my shopping list. I have everything I need for the crust, but I'm not sure about the filling.": "wrong", # wrong
31
  "Who did the actor who played Ray in the Polish-language version of Everybody Loves Raymond play in Magda M.? Give only the first name.": "Wojciech", # correct
32
  "What is the final numeric output from the attached Python code?": "0", # correct
33
  "How many at bats did the Yankee with the most walks in the 1977 regular season have that same season?": "519", # correct
 
47
  output_type = "string"
48
 
49
  def __init__(self, *args, authorized_imports=None, **kwargs):
50
+ # self.python_interpreter = PythonInterpreterTool()
51
  self.inputs = {
52
  "file_path": {
53
  "type": "string",