Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -216,7 +216,6 @@ def extract_invoice_data(file_data, content_type):
|
|
| 216 |
|
| 217 |
# Clean and parse JSON output
|
| 218 |
content = response.choices[0].message.content.strip()
|
| 219 |
-
cleaned_content = content.strip().strip('```json').strip('```')
|
| 220 |
|
| 221 |
try:
|
| 222 |
parsed_content = json.loads(cleaned_content)
|
|
|
|
| 216 |
|
| 217 |
# Clean and parse JSON output
|
| 218 |
content = response.choices[0].message.content.strip()
|
|
|
|
| 219 |
|
| 220 |
try:
|
| 221 |
parsed_content = json.loads(cleaned_content)
|