OmidSakaki commited on
Commit
09ae6ba
·
verified ·
1 Parent(s): f110061

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -127,8 +127,12 @@ if selected_type == "Upload Image":
127
  image = Image.open(uploaded_file).convert('RGB')
128
  st.image(image, use_column_width=True)
129
 
 
 
 
 
130
  with st.spinner(f"Working... 💫"):
131
- result = FINAL(image)
132
 
133
  st.image(result)
134
 
 
127
  image = Image.open(uploaded_file).convert('RGB')
128
  st.image(image, use_column_width=True)
129
 
130
+ img = io.BytesIO(image)
131
+ img = cv.imdecode(file_bytes, cv.IMREAD_COLOR)
132
+
133
+
134
  with st.spinner(f"Working... 💫"):
135
+ result = FINAL(img)
136
 
137
  st.image(result)
138