bigmed@bigmed commited on
Commit
5acc242
1 Parent(s): 8ef1fbf

moved the rule of thumb to title

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -104,9 +104,9 @@ def Final_Compute_regression_results_Sample(Model, batch_sampler,num_head=2):
104
  # print('Vertical cup to disc ratio:')
105
  # print(ratios.vcdr)
106
  if ratios.vcdr < 0.6:
107
- glaucoma = 'None (Rule of thumb ~0.6 or greater is suspicious)'
108
  else:
109
- glaucoma = 'May be there is a risk of Glaucoma (Rule of thumb ~0.6 or greater is suspicious)'
110
 
111
  # print('Galucoma:')
112
 
@@ -143,7 +143,7 @@ def infer(img):
143
  title = "Glaucoma Detection in Retinal Fundus Images"
144
  description = "The method detects disc and cup in the retinal image, then it computes the Vertical cup to disc ratio"
145
 
146
- outputs = [gr.Textbox(label="Vertical cup to disc ratio:"), gr.Textbox(label="predicted diagnosis"), gr.Image(label='labeled image'), gr.Image(label='zoomed in')]
147
  with gr.Blocks(css='#title {text-align : center;} ') as demo:
148
  with gr.Row():
149
  gr.Markdown(
@@ -164,7 +164,7 @@ with gr.Blocks(css='#title {text-align : center;} ') as demo:
164
  with gr.Column():
165
  with gr.Row():
166
  text1 = gr.Textbox(label="Vertical Cup to Disc Ratio:")
167
- text2 = gr.Textbox(label="Predicted Diagnosis")
168
  img = gr.Image(label='Detected disc and cup')
169
  zoom = gr.Image(label='Croppped')
170
 
 
104
  # print('Vertical cup to disc ratio:')
105
  # print(ratios.vcdr)
106
  if ratios.vcdr < 0.6:
107
+ glaucoma = 'None'
108
  else:
109
+ glaucoma = 'May be there is a risk of Glaucoma'
110
 
111
  # print('Galucoma:')
112
 
 
143
  title = "Glaucoma Detection in Retinal Fundus Images"
144
  description = "The method detects disc and cup in the retinal image, then it computes the Vertical cup to disc ratio"
145
 
146
+ outputs = [gr.Textbox(label="Vertical cup to disc ratio:"), gr.Textbox(label="predicted diagnosis (Rule of thumb ~0.6 or greater is suspicious)"), gr.Image(label='labeled image'), gr.Image(label='zoomed in')]
147
  with gr.Blocks(css='#title {text-align : center;} ') as demo:
148
  with gr.Row():
149
  gr.Markdown(
 
164
  with gr.Column():
165
  with gr.Row():
166
  text1 = gr.Textbox(label="Vertical Cup to Disc Ratio:")
167
+ text2 = gr.Textbox(label="Predicted Diagnosis (Rule of thumb ~0.6 or greater is suspicious)")
168
  img = gr.Image(label='Detected disc and cup')
169
  zoom = gr.Image(label='Croppped')
170