Antigravity Agent commited on
Commit ·
2706517
1
Parent(s): a1d2691
fix(ocr): apply CJK filter to string output and sync with local improvements
Browse files- ocr_module.py +1 -1
ocr_module.py
CHANGED
|
@@ -55,7 +55,7 @@ def clean_latex_output(text: str) -> str:
|
|
| 55 |
def extract_latex_from_pix2text(out) -> str:
|
| 56 |
"""Safely extract LaTeX text from pix2text output regardless of return type."""
|
| 57 |
if isinstance(out, str):
|
| 58 |
-
return out
|
| 59 |
elif isinstance(out, list):
|
| 60 |
parts = []
|
| 61 |
for item in out:
|
|
|
|
| 55 |
def extract_latex_from_pix2text(out) -> str:
|
| 56 |
"""Safely extract LaTeX text from pix2text output regardless of return type."""
|
| 57 |
if isinstance(out, str):
|
| 58 |
+
return clean_latex_output(out)
|
| 59 |
elif isinstance(out, list):
|
| 60 |
parts = []
|
| 61 |
for item in out:
|