ariankhalfani commited on
Commit
797a213
1 Parent(s): 4593407

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -79,6 +79,7 @@ with gr.Blocks(theme=theme) as demo:
79
  with gr.Row():
80
  image_input = gr.Image(type="numpy", label="Upload an Image")
81
  submit_btn = gr.Button("Submit")
 
82
 
83
  with gr.Row():
84
  segmented_image_cataract = gr.Image(type="numpy", label="Segmented Image")
@@ -114,6 +115,7 @@ with gr.Blocks(theme=theme) as demo:
114
  with gr.Row():
115
  image_input = gr.Image(type="numpy", label="Upload an Image")
116
  mask_threshold_slider = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.5, label="Mask Threshold")
 
117
 
118
  with gr.Row():
119
  submit_btn_segmentation = gr.Button("Submit Segmentation")
 
79
  with gr.Row():
80
  image_input = gr.Image(type="numpy", label="Upload an Image")
81
  submit_btn = gr.Button("Submit")
82
+ gr.Examples([["test-cataract-image.jpg"]], inputs=[image_input],label='Or use one of these examples:')
83
 
84
  with gr.Row():
85
  segmented_image_cataract = gr.Image(type="numpy", label="Segmented Image")
 
115
  with gr.Row():
116
  image_input = gr.Image(type="numpy", label="Upload an Image")
117
  mask_threshold_slider = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.5, label="Mask Threshold")
118
+ gr.Examples([["test-glaucoma-image.jpg"]], inputs=[image_input],label='Or use one of these examples:')
119
 
120
  with gr.Row():
121
  submit_btn_segmentation = gr.Button("Submit Segmentation")