Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,11 +32,14 @@ if task1=="Tumor Detection":
|
|
32 |
return"Tumor"
|
33 |
else:
|
34 |
return"No Tumor"
|
35 |
-
if img
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
40 |
|
41 |
|
42 |
#choosing classification
|
|
|
32 |
return"Tumor"
|
33 |
else:
|
34 |
return"No Tumor"
|
35 |
+
if img is not None:
|
36 |
+
st.image(img, caption="Uploaded Image.", use_column_width=False, width=200)
|
37 |
+
st.write("")
|
38 |
+
|
39 |
+
if st.button("Detect Tumor"):
|
40 |
+
result =cnn_make_prediction(img, cnn_model)
|
41 |
+
st.subheader("Tumor Detection Result")
|
42 |
+
st.write(f"**{result}**")
|
43 |
|
44 |
|
45 |
#choosing classification
|