Spaces:
Running
on
Zero
Running
on
Zero
wjbmattingly
commited on
Commit
•
ee83624
1
Parent(s):
ef086f3
Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,10 @@ with gr.Blocks() as demo:
|
|
51 |
gr.Markdown("Upload an image to extract and convert text to markdown format.")
|
52 |
gr.Markdown("[Check out the model here](https://huggingface.co/yifeihu/TB-OCR-preview-0.1)")
|
53 |
|
54 |
-
|
55 |
-
|
|
|
56 |
|
57 |
input_image.change(fn=process_image, inputs=input_image, outputs=output_text)
|
58 |
|
59 |
-
|
60 |
demo.launch()
|
|
|
51 |
gr.Markdown("Upload an image to extract and convert text to markdown format.")
|
52 |
gr.Markdown("[Check out the model here](https://huggingface.co/yifeihu/TB-OCR-preview-0.1)")
|
53 |
|
54 |
+
with gr.Row():
|
55 |
+
input_image = gr.Image(type="pil")
|
56 |
+
output_text = gr.Textbox()
|
57 |
|
58 |
input_image.change(fn=process_image, inputs=input_image, outputs=output_text)
|
59 |
|
|
|
60 |
demo.launch()
|