Tonic commited on
Commit
7314e93
1 Parent(s): 4bf3c80

add Image Editor GOT OCR Demo

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -145,7 +145,7 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
145
  gr.Markdown(howto)
146
  with gr.Row():
147
  with gr.Column(scale=1):
148
- image_editor = gr.ImageEditor(label="Image Editor", type="pil")
149
  ocr_type_dropdown = gr.Dropdown(
150
  choices=["ocr", "format"],
151
  label="OCR Type",
@@ -159,8 +159,8 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
159
  submit_button = gr.Button("Process")
160
 
161
  with gr.Column(scale=1):
162
- output_markdown = gr.Markdown(label="OCR Result")
163
- output_html = gr.HTML(label="Rendered Result")
164
 
165
  submit_button.click(
166
  ocr_demo,
 
145
  gr.Markdown(howto)
146
  with gr.Row():
147
  with gr.Column(scale=1):
148
+ image_editor = gr.ImageEditor(label="Image Editor", type="pil", height=800)
149
  ocr_type_dropdown = gr.Dropdown(
150
  choices=["ocr", "format"],
151
  label="OCR Type",
 
159
  submit_button = gr.Button("Process")
160
 
161
  with gr.Column(scale=1):
162
+ output_markdown = gr.Markdown(label="🫴🏻👁GOT-OCR")
163
+ output_html = gr.HTML(label="🫴🏻👁GOT-OCR")
164
 
165
  submit_button.click(
166
  ocr_demo,