atlury commited on
Commit
113f0fc
·
verified ·
1 Parent(s): eff3bf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -109,12 +109,12 @@ def process_image(image, model_choice):
109
  # Create the Gradio Interface
110
  with gr.Blocks() as demo:
111
  gr.Markdown("# Document Segmentation Demo (ZeroGPU)")
112
-
113
  with gr.Row():
114
- model_choice = gr.Dropdown(["YOLOv8 Model", "DLA Model"], label="Select Model", value="YOLOv8 Model")
115
  input_image = gr.Image(type="pil", label="Upload Image")
116
-
117
- output_image = gr.Image(type="pil", label="Annotated Image")
 
118
  output_text = gr.Textbox(label="Detected Areas and Labels")
119
 
120
  btn = gr.Button("Run Document Segmentation")
 
109
  # Create the Gradio Interface
110
  with gr.Blocks() as demo:
111
  gr.Markdown("# Document Segmentation Demo (ZeroGPU)")
112
+
113
  with gr.Row():
 
114
  input_image = gr.Image(type="pil", label="Upload Image")
115
+ output_image = gr.Image(type="pil", label="Annotated Image")
116
+
117
+ model_choice = gr.Dropdown(["YOLOv8 Model", "DLA Model"], label="Select Model", value="YOLOv8 Model", scale=0.5)
118
  output_text = gr.Textbox(label="Detected Areas and Labels")
119
 
120
  btn = gr.Button("Run Document Segmentation")