Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
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):
|
@@ -17,7 +16,3 @@ if uploaded_file is not None:
|
|
17 |
# Get actual image file
|
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 os
|
5 |
|
6 |
def get_image_path(img):
|
|
|
16 |
# Get actual image file
|
17 |
bytes_data = get_image_path(uploaded_file)
|
18 |
st.image(bytes_data)
|
|
|
|
|
|
|
|