LovnishVerma commited on
Commit
cd196c7
1 Parent(s): a00b28d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def predict_braintumor(img):
45
 
46
  # Handle binary decision
47
  confidence = pred[0][0]
48
- return "Brain Tumor Found!" if binary_decision(confidence) == 1 else "Brain Tumor Not Found!"
49
 
50
  def main():
51
  st.title("Brain Tumor Prediction App")
@@ -73,6 +73,6 @@ if __name__ == "__main__":
73
  fn=predict_braintumor,
74
  inputs="image",
75
  outputs="text",
76
- examples=[["examples/1_no.jpeg"], ["examples/2_no.jpeg"], ["examples/Y1.jpg"], ["examples/Y2.jpg"]]
77
  )
78
  iface.launch()
 
45
 
46
  # Handle binary decision
47
  confidence = pred[0][0]
48
+ return "Brain Tumor Not Found!" if binary_decision(confidence) == 1 else "Brain Tumor Found!"
49
 
50
  def main():
51
  st.title("Brain Tumor Prediction App")
 
73
  fn=predict_braintumor,
74
  inputs="image",
75
  outputs="text",
76
+ examples=[["examples/1_no.jpeg"], ["examples/2_no.jpeg"], ["examples/3_no.jpeg"], ["examples/Y1.jpg"], ["examples/Y2.jpeg"], ["examples/Y3.jpg"]]
77
  )
78
  iface.launch()