multimodalart HF Staff commited on
Commit
5abe42b
·
verified ·
1 Parent(s): 6426e97

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -206,7 +206,7 @@ def convert_file(
206
  return preview, result, rendered, status
207
 
208
 
209
- with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
210
  gr.Markdown(
211
  """
212
  # 📄 Indra OCR
@@ -260,8 +260,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
260
  label="Result",
261
  lines=20,
262
  max_lines=45,
263
- show_copy_button=True,
264
- text_align="left",
265
  )
266
  with gr.Tab("Rendered markdown"):
267
  rendered_out = gr.Markdown(label="Rendered markdown", value="")
@@ -299,4 +298,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
299
  label="Example documents (the OmniParseBench pages used in the model card)",
300
  )
301
 
302
- demo.launch(mcp_server=True)
 
206
  return preview, result, rendered, status
207
 
208
 
209
+ with gr.Blocks() as demo:
210
  gr.Markdown(
211
  """
212
  # 📄 Indra OCR
 
260
  label="Result",
261
  lines=20,
262
  max_lines=45,
263
+ buttons=["copy"],
 
264
  )
265
  with gr.Tab("Rendered markdown"):
266
  rendered_out = gr.Markdown(label="Rendered markdown", value="")
 
298
  label="Example documents (the OmniParseBench pages used in the model card)",
299
  )
300
 
301
+ demo.launch(mcp_server=True, theme=gr.themes.Citrus(), css=CSS)