Spaces:
Running
Running
ragavsachdeva
commited on
Commit
•
fa23b16
1
Parent(s):
f4f2f44
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,8 @@ def load_model():
|
|
13 |
|
14 |
@st.cache_data
|
15 |
def read_image_as_np_array(image_path):
|
16 |
-
|
17 |
-
|
18 |
-
image = np.array(image)
|
19 |
return image
|
20 |
|
21 |
@st.cache_data
|
|
|
13 |
|
14 |
@st.cache_data
|
15 |
def read_image_as_np_array(image_path):
|
16 |
+
image = Image.open(image_path).convert("L").convert("RGB")
|
17 |
+
image = np.array(image)
|
|
|
18 |
return image
|
19 |
|
20 |
@st.cache_data
|