Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,12 +69,11 @@ def generate_salesforce_bar_chart(df):
|
|
| 69 |
print(f"Error generating bar chart: {e}")
|
| 70 |
return None
|
| 71 |
|
| 72 |
-
#
|
| 73 |
def process_image(image, mode, entry_type, quantity):
|
| 74 |
extracted_text = extract_text(image)
|
| 75 |
if not extracted_text:
|
| 76 |
return "No text detected in the image.", None
|
| 77 |
-
|
| 78 |
return f"Extracted Text:\n{extracted_text}\n\nProcessing Completed.", None
|
| 79 |
|
| 80 |
# Function to fetch and return Salesforce data
|
|
|
|
| 69 |
print(f"Error generating bar chart: {e}")
|
| 70 |
return None
|
| 71 |
|
| 72 |
+
# Function to process the image and extract product details
|
| 73 |
def process_image(image, mode, entry_type, quantity):
|
| 74 |
extracted_text = extract_text(image)
|
| 75 |
if not extracted_text:
|
| 76 |
return "No text detected in the image.", None
|
|
|
|
| 77 |
return f"Extracted Text:\n{extracted_text}\n\nProcessing Completed.", None
|
| 78 |
|
| 79 |
# Function to fetch and return Salesforce data
|