Spaces:
Sleeping
Sleeping
Update tools/excel_sum_tool.py
Browse files- tools/excel_sum_tool.py +2 -3
tools/excel_sum_tool.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
-
from langchain.tools import tool
|
| 3 |
-
|
| 4 |
-
@tool
|
| 5 |
def excel_food_sales_sum(file_path: str) -> str:
|
| 6 |
"""
|
| 7 |
Parses the Excel file and returns total sales of items classified as food.
|
|
|
|
| 1 |
+
# tools/excel_sum_tool.py
|
| 2 |
+
import pandas as pd
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
def excel_food_sales_sum(file_path: str) -> str:
|
| 5 |
"""
|
| 6 |
Parses the Excel file and returns total sales of items classified as food.
|