Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def classify_mammogram(img):
|
|
| 30 |
|
| 31 |
# Streamlit app
|
| 32 |
st.title("Breast Cancer Detection App")
|
| 33 |
-
st.write("Upload an image of a mammogram, and the model will predict whether it is benign or malignant.")
|
| 34 |
st.write(
|
| 35 |
"""
|
| 36 |
<div style='display: flex; justify-content: space-between;'>
|
|
@@ -55,10 +55,10 @@ st.write(
|
|
| 55 |
unsafe_allow_html=True
|
| 56 |
)
|
| 57 |
|
| 58 |
-
uploaded_file = st.file_uploader("
|
| 59 |
|
| 60 |
if uploaded_file is not None:
|
| 61 |
-
|
| 62 |
st.image(image, caption='Uploaded Image.', use_column_width=True)
|
| 63 |
st.write("Classifying...")
|
| 64 |
|
|
|
|
| 30 |
|
| 31 |
# Streamlit app
|
| 32 |
st.title("Breast Cancer Detection App")
|
| 33 |
+
st.write("Upload an image of a mammogram(an x-ray image of the breast), and the model will predict whether it is benign or malignant.")
|
| 34 |
st.write(
|
| 35 |
"""
|
| 36 |
<div style='display: flex; justify-content: space-between;'>
|
|
|
|
| 55 |
unsafe_allow_html=True
|
| 56 |
)
|
| 57 |
|
| 58 |
+
uploaded_file = st.file_uploader("Upload an image...", type=["jpg", "jpeg", "png"])
|
| 59 |
|
| 60 |
if uploaded_file is not None:
|
| 61 |
+
image = Image.open(uploaded_file)
|
| 62 |
st.image(image, caption='Uploaded Image.', use_column_width=True)
|
| 63 |
st.write("Classifying...")
|
| 64 |
|