Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from io import BytesIO
|
3 |
import imageio.v3 as iio
|
4 |
-
import cv2
|
5 |
import os
|
6 |
|
7 |
def get_image_path(img):
|
@@ -18,6 +18,6 @@ if uploaded_file is not None:
|
|
18 |
bytes_data = get_image_path(uploaded_file)
|
19 |
st.image(bytes_data)
|
20 |
# ReSize
|
21 |
-
item = cv2.resize(bytes_data,dsize=(224,224), interpolation=cv2.INTER_CUBIC)
|
22 |
# ReScale Values
|
23 |
item = item / 255
|
|
|
1 |
import streamlit as st
|
2 |
from io import BytesIO
|
3 |
import imageio.v3 as iio
|
4 |
+
#import cv2
|
5 |
import os
|
6 |
|
7 |
def get_image_path(img):
|
|
|
18 |
bytes_data = get_image_path(uploaded_file)
|
19 |
st.image(bytes_data)
|
20 |
# ReSize
|
21 |
+
#item = cv2.resize(bytes_data,dsize=(224,224), interpolation=cv2.INTER_CUBIC)
|
22 |
# ReScale Values
|
23 |
item = item / 255
|