Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ model = joblib.load('modelKNN.joblib')
|
|
| 16 |
|
| 17 |
def main():
|
| 18 |
st.title("Brain Tumor Analysis")
|
| 19 |
-
uploaded_file = st.file_uploader("Upload your
|
| 20 |
if uploaded_file is not None:
|
| 21 |
file_bytes = np.asarray(bytearray(uploaded_file.read()), dtype=np.uint8) #Create Bytes array
|
| 22 |
img = cv2.imdecode(file_bytes,cv2.IMREAD_GRAYSCALE) #Transform Bytes array to numpy array
|
|
|
|
| 16 |
|
| 17 |
def main():
|
| 18 |
st.title("Brain Tumor Analysis")
|
| 19 |
+
uploaded_file = st.file_uploader("Upload your Brain MRI image here... (.jpg)", type=['jpg'])
|
| 20 |
if uploaded_file is not None:
|
| 21 |
file_bytes = np.asarray(bytearray(uploaded_file.read()), dtype=np.uint8) #Create Bytes array
|
| 22 |
img = cv2.imdecode(file_bytes,cv2.IMREAD_GRAYSCALE) #Transform Bytes array to numpy array
|