Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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:
|