Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
|
@@ -151,8 +151,8 @@ def to_markdown(file_path, end_pages, is_ocr, layout_mode, formula_enable, table
|
|
| 151 |
return md_content, txt_content, archive_zip_path, new_pdf_path
|
| 152 |
|
| 153 |
|
| 154 |
-
|
| 155 |
-
|
| 156 |
|
| 157 |
|
| 158 |
def init_model():
|
|
@@ -255,7 +255,7 @@ if __name__ == "__main__":
|
|
| 255 |
with gr.Tabs():
|
| 256 |
with gr.Tab("Markdown rendering"):
|
| 257 |
md = gr.Markdown(label="Markdown rendering", height=1100, show_copy_button=True,
|
| 258 |
-
|
| 259 |
line_breaks=True)
|
| 260 |
with gr.Tab("Markdown text"):
|
| 261 |
md_text = gr.TextArea(lines=45, show_copy_button=True)
|
|
|
|
| 151 |
return md_content, txt_content, archive_zip_path, new_pdf_path
|
| 152 |
|
| 153 |
|
| 154 |
+
latex_delimiters = [{"left": "\\[", "right": "\\]", "display": True},
|
| 155 |
+
{"left": '\\(', "right": '\\)', "display": False}]
|
| 156 |
|
| 157 |
|
| 158 |
def init_model():
|
|
|
|
| 255 |
with gr.Tabs():
|
| 256 |
with gr.Tab("Markdown rendering"):
|
| 257 |
md = gr.Markdown(label="Markdown rendering", height=1100, show_copy_button=True,
|
| 258 |
+
latex_delimiters=latex_delimiters,
|
| 259 |
line_breaks=True)
|
| 260 |
with gr.Tab("Markdown text"):
|
| 261 |
md_text = gr.TextArea(lines=45, show_copy_button=True)
|