Spaces:
Running
Running
Raghu
commited on
Commit
·
cb72a92
1
Parent(s):
76eed09
Fix remaining f-string escaping in extraction error
Browse files
app.py
CHANGED
|
@@ -757,7 +757,7 @@ def process_receipt(image):
|
|
| 757 |
fields_html += "</div>"
|
| 758 |
results['fields'] = fields
|
| 759 |
except Exception as e:
|
| 760 |
-
fields_html = f
|
| 761 |
|
| 762 |
# 4. Anomaly Detection
|
| 763 |
anomaly_html = ""
|
|
|
|
| 757 |
fields_html += "</div>"
|
| 758 |
results['fields'] = fields
|
| 759 |
except Exception as e:
|
| 760 |
+
fields_html = f"<div style='color: red;'>Extraction error: {e}</div>"
|
| 761 |
|
| 762 |
# 4. Anomaly Detection
|
| 763 |
anomaly_html = ""
|