Spaces:
Running
Running
improve latex parsing
Browse files
app.py
CHANGED
|
@@ -169,7 +169,7 @@ def parse_latex_output(res):
|
|
| 169 |
latex_buffer.append('$$')
|
| 170 |
parsed_lines.extend(latex_buffer)
|
| 171 |
|
| 172 |
-
return '
|
| 173 |
|
| 174 |
def ocr_demo(image, task, ocr_type, ocr_box, ocr_color):
|
| 175 |
res, html_content, unique_id = process_image(image, task, ocr_type, ocr_box, ocr_color)
|
|
|
|
| 169 |
latex_buffer.append('$$')
|
| 170 |
parsed_lines.extend(latex_buffer)
|
| 171 |
|
| 172 |
+
return '$$\\\\$$'.join(parsed_lines)
|
| 173 |
|
| 174 |
def ocr_demo(image, task, ocr_type, ocr_box, ocr_color):
|
| 175 |
res, html_content, unique_id = process_image(image, task, ocr_type, ocr_box, ocr_color)
|