optionEdge commited on
Commit
c1d27b0
·
verified ·
1 Parent(s): 33402b3

Update BasicAgent.py

Browse files
Files changed (1) hide show
  1. BasicAgent.py +2 -2
BasicAgent.py CHANGED
@@ -11,7 +11,7 @@ from smolagents import (
11
  )
12
 
13
  #*
14
- @tool
15
  def read_excel(self, file_path, sheet_name=0):
16
  """
17
  Read an Excel file into a pandas DataFrame.
@@ -28,7 +28,7 @@ from smolagents import (
28
  except Exception as e:
29
  print(f"Error reading Excel file: {e}")
30
  return None
31
-
32
  class newAgent:
33
  """Adapts smolagents.CodeAgent to the HF course template API."""
34
  def __init__(self):
 
11
  )
12
 
13
  #*
14
+ @tool
15
  def read_excel(self, file_path, sheet_name=0):
16
  """
17
  Read an Excel file into a pandas DataFrame.
 
28
  except Exception as e:
29
  print(f"Error reading Excel file: {e}")
30
  return None
31
+ #
32
  class newAgent:
33
  """Adapts smolagents.CodeAgent to the HF course template API."""
34
  def __init__(self):