ragavsachdeva commited on
Commit
fa23b16
1 Parent(s): f4f2f44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- with open(image_path, "rb") as file:
17
- image = Image.open(file).convert("L").convert("RGB")
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