Kalbe-x-Bangkit
commited on
Commit
•
329fbf8
1
Parent(s):
93641ab
Update app.py
Browse files
app.py
CHANGED
@@ -456,6 +456,7 @@ if uploaded_file is not None:
|
|
456 |
redirect_button("https://new-ohif-viewer-k7c3gdlxua-et.a.run.app/")
|
457 |
|
458 |
with col2:
|
|
|
459 |
image = cv2.imdecode(file_bytes, 1)
|
460 |
if st.button('Auto Detect'):
|
461 |
st.write("Processing...")
|
|
|
456 |
redirect_button("https://new-ohif-viewer-k7c3gdlxua-et.a.run.app/")
|
457 |
|
458 |
with col2:
|
459 |
+
file_bytes = np.asarray(bytearray(uploaded_file.read()), dtype=np.uint8)
|
460 |
image = cv2.imdecode(file_bytes, 1)
|
461 |
if st.button('Auto Detect'):
|
462 |
st.write("Processing...")
|