multimodalart HF Staff commited on
Commit
4183e6c
·
verified ·
1 Parent(s): c9a061c

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -105,7 +105,7 @@ region or page, pick a task, and get structured output:
105
  [GitHub](https://github.com/flow3rdown/VenusOCR)
106
  """
107
 
108
- with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
109
  with gr.Column(elem_id="col-container"):
110
  gr.Markdown(INTRO)
111
  with gr.Row():
@@ -132,7 +132,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
132
  label="Recognized output",
133
  lines=14,
134
  max_lines=28,
135
- show_copy_button=True,
136
  )
137
  with gr.Accordion("Rendered preview", open=False):
138
  out_md = gr.Markdown(
@@ -159,4 +159,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
159
  api_name="generate",
160
  )
161
 
162
- demo.launch(mcp_server=True)
 
105
  [GitHub](https://github.com/flow3rdown/VenusOCR)
106
  """
107
 
108
+ with gr.Blocks() as demo:
109
  with gr.Column(elem_id="col-container"):
110
  gr.Markdown(INTRO)
111
  with gr.Row():
 
132
  label="Recognized output",
133
  lines=14,
134
  max_lines=28,
135
+ buttons=["copy"],
136
  )
137
  with gr.Accordion("Rendered preview", open=False):
138
  out_md = gr.Markdown(
 
159
  api_name="generate",
160
  )
161
 
162
+ demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)