prithivMLmods commited on
Commit
f370300
·
verified ·
1 Parent(s): fcad9b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -235,7 +235,7 @@ image_examples = [
235
  ["Extract the contents. [page].", "examples/2.jpg"],
236
  ]
237
 
238
- with gr.Blocks() as demo:
239
  gr.Markdown("# **Multimodal OCR3**", elem_id="main-title")
240
  with gr.Row():
241
  with gr.Column(scale=2):
@@ -257,7 +257,7 @@ with gr.Blocks() as demo:
257
 
258
  with gr.Column(scale=3):
259
  gr.Markdown("## Output", elem_id="output-title")
260
- output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, buttons=["copy"])
261
  with gr.Accordion("(Result.md)", open=False):
262
  markdown_output = gr.Markdown(label="(Result.Md)")
263
 
@@ -274,4 +274,4 @@ with gr.Blocks() as demo:
274
  )
275
 
276
  if __name__ == "__main__":
277
- demo.queue(max_size=50).launch(css=css, theme=steel_blue_theme, mcp_server=True, ssr_mode=False, show_error=True)
 
235
  ["Extract the contents. [page].", "examples/2.jpg"],
236
  ]
237
 
238
+ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
239
  gr.Markdown("# **Multimodal OCR3**", elem_id="main-title")
240
  with gr.Row():
241
  with gr.Column(scale=2):
 
257
 
258
  with gr.Column(scale=3):
259
  gr.Markdown("## Output", elem_id="output-title")
260
+ output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
261
  with gr.Accordion("(Result.md)", open=False):
262
  markdown_output = gr.Markdown(label="(Result.Md)")
263
 
 
274
  )
275
 
276
  if __name__ == "__main__":
277
+ demo.queue(max_size=50).launch(mcp_server=True, ssr_mode=False, show_error=True)