Update app.py
Browse files
app.py
CHANGED
|
@@ -31,11 +31,11 @@ def process_image(image):
|
|
| 31 |
# Create the Gradio Interface
|
| 32 |
with gr.Blocks() as demo:
|
| 33 |
gr.Markdown("# Document Segmentation Demo (ZeroGPU)")
|
| 34 |
-
# Input Components
|
| 35 |
-
input_image = gr.Image(type="pil", label="Upload Image")
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
output_text = gr.Textbox(label="Detected Areas and Labels")
|
| 40 |
|
| 41 |
# Button to trigger inference
|
|
|
|
| 31 |
# Create the Gradio Interface
|
| 32 |
with gr.Blocks() as demo:
|
| 33 |
gr.Markdown("# Document Segmentation Demo (ZeroGPU)")
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
with gr.Row():
|
| 36 |
+
input_image = gr.Image(type="pil", label="Upload Image")
|
| 37 |
+
output_image = gr.Image(type="pil", label="Annotated Image")
|
| 38 |
+
|
| 39 |
output_text = gr.Textbox(label="Detected Areas and Labels")
|
| 40 |
|
| 41 |
# Button to trigger inference
|