milwright commited on
Commit
341cb11
·
1 Parent(s): 3bdacb6

Fix f-string backslash escape syntax error

Browse files
Files changed (1) hide show
  1. structured_ocr.py +1 -1
structured_ocr.py CHANGED
@@ -1669,7 +1669,7 @@ class StructuredOCR:
1669
  "languages": ["English"],
1670
  "ocr_contents": {
1671
  "raw_text": ocr_markdown[:50000] if ocr_markdown else "No text could be extracted",
1672
- "error": f"AI processing failed: {str(e).replace('\"', '\\\"')}"
1673
  },
1674
  "processing_method": "fallback",
1675
  "processing_error": str(e),
 
1669
  "languages": ["English"],
1670
  "ocr_contents": {
1671
  "raw_text": ocr_markdown[:50000] if ocr_markdown else "No text could be extracted",
1672
+ "error": "AI processing failed: " + str(e).replace('"', '\\"')
1673
  },
1674
  "processing_method": "fallback",
1675
  "processing_error": str(e),