2lu commited on
Commit
93282dc
·
verified ·
1 Parent(s): 2e077c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -140,13 +140,13 @@ def give_result(cc_prior_image, mlo_prior_image, cc_recent_image, mlo_recent_ima
140
  stage1_res = stage1_run(cc_diff_img, mlo_diff_img)
141
 
142
  if(stage1_res<0.4):
143
- return "Normal"
144
 
145
  stage2_res = stage2_run(cc_diff_img, mlo_diff_img)
146
  if(stage2_res<0.4):
147
  return "Benign"
148
  else:
149
- return "Suspecious"
150
 
151
  with gr.Blocks(title="Breast Cancer detection", css=".gradio-container {background:lightyellow;}") as demo:
152
  gr.HTML("<h1>Breast Cancer Detection</h1>")
 
140
  stage1_res = stage1_run(cc_diff_img, mlo_diff_img)
141
 
142
  if(stage1_res<0.4):
143
+ return f"Normal, you have {1-stage1_res} chance of being suspecious."
144
 
145
  stage2_res = stage2_run(cc_diff_img, mlo_diff_img)
146
  if(stage2_res<0.4):
147
  return "Benign"
148
  else:
149
+ return "Suspecious, You need to go for biopsy immediately."
150
 
151
  with gr.Blocks(title="Breast Cancer detection", css=".gradio-container {background:lightyellow;}") as demo:
152
  gr.HTML("<h1>Breast Cancer Detection</h1>")