ariankhalfani commited on
Commit
935e1b3
1 Parent(s): 2a6fdf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -73,14 +73,14 @@ def process_image(image):
73
  with gr.Blocks(theme=theme) as demo:
74
  gr.HTML(f"<img src='{logo_url}' alt='Logo' width='150'/>")
75
  gr.Markdown("## Wellness-Nexus V.1.0")
76
- gr.Markdown("This app helps people to diagnose their cataract and glaucoma, both respectively #1 and #2 cause of blindness in the world. You could try our diagnostic model by downloading test image on our Huggingface Repo File. also you can see the video demo here : https://youtu.be/yknUdPnbXFg")
77
  gr.Markdown("We were sorry that we provide the demo in diffrent file because we misunderstood the 5 minutes rule. we thought that 5 minutes are excluding demo. you can see our demo here : https://youtu.be/yknUdPnbXFg")
78
 
79
  with gr.Tab("Cataract Screener and Analyzer"):
80
  with gr.Row():
81
  image_input = gr.Image(type="numpy", label="Upload an Image")
82
  submit_btn = gr.Button("Submit")
83
- gr.Examples([["test-cataract-image.jpg"]], inputs=[image_input],label='Or use one of these examples:')
84
 
85
  with gr.Row():
86
  segmented_image_cataract = gr.Image(type="numpy", label="Segmented Image")
@@ -116,7 +116,7 @@ with gr.Blocks(theme=theme) as demo:
116
  with gr.Row():
117
  image_input = gr.Image(type="numpy", label="Upload an Image")
118
  mask_threshold_slider = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.5, label="Mask Threshold")
119
- gr.Examples([["test-glaucoma-image.jpg"]], inputs=[image_input],label='Or use one of these examples:')
120
 
121
  with gr.Row():
122
  submit_btn_segmentation = gr.Button("Submit Segmentation")
 
73
  with gr.Blocks(theme=theme) as demo:
74
  gr.HTML(f"<img src='{logo_url}' alt='Logo' width='150'/>")
75
  gr.Markdown("## Wellness-Nexus V.1.0")
76
+ gr.Markdown("This app helps people to diagnose their cataract and glaucoma, both respectively #1 and #2 cause of blindness in the world. You could try our diagnostic model by downloading test image on our Huggingface Repo File.")
77
  gr.Markdown("We were sorry that we provide the demo in diffrent file because we misunderstood the 5 minutes rule. we thought that 5 minutes are excluding demo. you can see our demo here : https://youtu.be/yknUdPnbXFg")
78
 
79
  with gr.Tab("Cataract Screener and Analyzer"):
80
  with gr.Row():
81
  image_input = gr.Image(type="numpy", label="Upload an Image")
82
  submit_btn = gr.Button("Submit")
83
+ gr.Examples([["test-cataract-image.jpg"], ["test-cataract-image2.jpg"], ["test-cataract-image3.jpg"], ["test-cataract-image4.jpg"]], inputs=[image_input],label='Or use one of these examples:')
84
 
85
  with gr.Row():
86
  segmented_image_cataract = gr.Image(type="numpy", label="Segmented Image")
 
116
  with gr.Row():
117
  image_input = gr.Image(type="numpy", label="Upload an Image")
118
  mask_threshold_slider = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.5, label="Mask Threshold")
119
+ gr.Examples([["test-glaucoma-image.jpg"], ["test-glaucoma-image2.jpg"], ["test-glaucoma-image3.jpg"], ["test-glaucoma-image4.jpg"]], inputs=[image_input],label='Or use one of these examples:')
120
 
121
  with gr.Row():
122
  submit_btn_segmentation = gr.Button("Submit Segmentation")