Srj-ai commited on
Commit
532d196
·
verified ·
1 Parent(s): 908bef8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -19,14 +19,16 @@ wikipedia_search= WikipediaSearchTool()
19
  python_code_executor=PythonInterpreterTool()
20
 
21
  @tool
22
- def Excel_reader(file_path):
23
  """Reads a CSV file and returns the data frame including rows and columns.
24
  Args:
25
- file_path: The path to the CSV file.
26
  """
27
  df = pd.read_csv(file_path)
28
  return df.to_string()
29
 
 
 
30
  excel_reader = Excel_reader()
31
 
32
  class BasicAgent:
 
19
  python_code_executor=PythonInterpreterTool()
20
 
21
  @tool
22
+ def Excel_reader(file_path: str) -> str:
23
  """Reads a CSV file and returns the data frame including rows and columns.
24
  Args:
25
+ file_path: The path to the CSV file.
26
  """
27
  df = pd.read_csv(file_path)
28
  return df.to_string()
29
 
30
+
31
+
32
  excel_reader = Excel_reader()
33
 
34
  class BasicAgent: