Bapt120 commited on
Commit
1c833a7
·
verified ·
1 Parent(s): a2e1624

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -557,6 +557,10 @@ with gr.Blocks(title="LightOnOCR-2 Multi-Model OCR") as demo:
557
  output_text = gr.Markdown(
558
  label="📄 Extracted Text (Rendered)",
559
  value="*Extracted text will appear here...*",
 
 
 
 
560
  )
561
 
562
  with gr.Row():
@@ -606,4 +610,4 @@ with gr.Blocks(title="LightOnOCR-2 Multi-Model OCR") as demo:
606
 
607
 
608
  if __name__ == "__main__":
609
- demo.launch(theme=gr.themes.Soft())
 
557
  output_text = gr.Markdown(
558
  label="📄 Extracted Text (Rendered)",
559
  value="*Extracted text will appear here...*",
560
+ latex_delimiters=[
561
+ {"left": "$$", "right": "$$", "display": True},
562
+ {"left": "$", "right": "$", "display": False},
563
+ ],
564
  )
565
 
566
  with gr.Row():
 
610
 
611
 
612
  if __name__ == "__main__":
613
+ demo.launch(theme=gr.themes.Soft())