Update app.py
Browse files
app.py
CHANGED
|
@@ -35,12 +35,11 @@ def clean_description(description, item_number=None):
|
|
| 35 |
|
| 36 |
return description.strip()
|
| 37 |
|
| 38 |
-
|
| 39 |
def clean_description(description, item_number):
|
| 40 |
"""
|
| 41 |
Cleans up the description for an item to ensure it's correctly formatted.
|
| 42 |
"""
|
| 43 |
-
# Placeholder for actual cleaning process (e.g., removing unwanted characters)
|
| 44 |
return description.strip()
|
| 45 |
|
| 46 |
# Function to extract PO Items with filters and better error handling
|
|
@@ -159,7 +158,6 @@ if df is not None:
|
|
| 159 |
print(df)
|
| 160 |
|
| 161 |
|
| 162 |
-
|
| 163 |
# Function: Save to Excel
|
| 164 |
def save_to_excel(df, output_path="extracted_po_data.xlsx"):
|
| 165 |
"""
|
|
|
|
| 35 |
|
| 36 |
return description.strip()
|
| 37 |
|
| 38 |
+
# Function: Clean Description (Basic cleaning logic)
|
| 39 |
def clean_description(description, item_number):
|
| 40 |
"""
|
| 41 |
Cleans up the description for an item to ensure it's correctly formatted.
|
| 42 |
"""
|
|
|
|
| 43 |
return description.strip()
|
| 44 |
|
| 45 |
# Function to extract PO Items with filters and better error handling
|
|
|
|
| 158 |
print(df)
|
| 159 |
|
| 160 |
|
|
|
|
| 161 |
# Function: Save to Excel
|
| 162 |
def save_to_excel(df, output_path="extracted_po_data.xlsx"):
|
| 163 |
"""
|