Tonic commited on
Commit
3df4587
1 Parent(s): d9fde96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -181,7 +181,8 @@ def ocr_demo(image, task, ocr_type, ocr_box, ocr_color):
181
  return res, None
182
 
183
  res = res.replace("\\title", "\\title ")
184
- formatted_res = parse_latex_output(res)
 
185
 
186
  if html_content:
187
  encoded_html = base64.b64encode(html_content.encode('utf-8')).decode('utf-8')
@@ -261,7 +262,7 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
261
 
262
  with gr.Column(scale=1):
263
  with gr.Group():
264
- output_markdown = gr.Markdown(label="🫴🏻📸GOT-OCR")
265
  output_html = gr.HTML(label="🫴🏻📸GOT-OCR")
266
 
267
  task_dropdown.change(
 
181
  return res, None
182
 
183
  res = res.replace("\\title", "\\title ")
184
+ formatted_res = res
185
+ # formatted_res = parse_latex_output(res)
186
 
187
  if html_content:
188
  encoded_html = base64.b64encode(html_content.encode('utf-8')).decode('utf-8')
 
262
 
263
  with gr.Column(scale=1):
264
  with gr.Group():
265
+ output_markdown = gr.Textbox(label="🫴🏻📸GOT-OCR")
266
  output_html = gr.HTML(label="🫴🏻📸GOT-OCR")
267
 
268
  task_dropdown.change(