Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -428,9 +428,6 @@ if uploaded_file is not None:
|
|
| 428 |
img_array = np.uint8(img_array) # Convert to uint8
|
| 429 |
img = Image.fromarray(img_array)
|
| 430 |
|
| 431 |
-
file_bytes = np.asarray(bytearray(uploaded_detection.read()), dtype=np.uint8)
|
| 432 |
-
image = cv2.imdecode(file_bytes, 1)
|
| 433 |
-
|
| 434 |
# st.image(image, caption='Uploaded Image.', use_column_width=True)
|
| 435 |
|
| 436 |
col1, col2 = st.columns(2)
|
|
|
|
| 428 |
img_array = np.uint8(img_array) # Convert to uint8
|
| 429 |
img = Image.fromarray(img_array)
|
| 430 |
|
|
|
|
|
|
|
|
|
|
| 431 |
# st.image(image, caption='Uploaded Image.', use_column_width=True)
|
| 432 |
|
| 433 |
col1, col2 = st.columns(2)
|