Spaces:
Paused
Paused
add Image Editor GOT OCR Demo
Browse files
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
|
163 |
-
output_html = gr.HTML(label="
|
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,
|