OmidSakaki commited on
Commit
411a641
·
verified ·
1 Parent(s): 7cfc089

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -127,9 +127,10 @@ if selected_type == "Upload Image":
127
 
128
  image = Image.open(uploaded_file).convert('RGB')
129
  st.image(image, use_column_width=True)
130
- image.save(inpout_img, format="JPEG")
131
 
132
- image = cv2.imread('inpout_img.JPEG')
 
 
133
 
134
  with st.spinner(f"Working... 💫"):
135
  result = FINAL(image)
 
127
 
128
  image = Image.open(uploaded_file).convert('RGB')
129
  st.image(image, use_column_width=True)
 
130
 
131
+ cv2.imwrite('inpout_img.jpg', image)
132
+
133
+ image = cv2.imread('inpout_img.jpg')
134
 
135
  with st.spinner(f"Working... 💫"):
136
  result = FINAL(image)