muhammadzain commited on
Commit
36da93e
·
1 Parent(s): 02d8f0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ def inference():
19
  file_name = file.filename
20
  image = cv2.imread(secure_filename(file_name))
21
  w,h = image.shape[1],image.shape[0]
22
- output = cv2.resize(output,(int(w*.79),int(h*.79)))
23
- cv2.imwrite(secure_filename(file.filename),output)
24
  os.system("uname -a")
25
  #output = remove(image) # remove background
26
  outputName = secure_filename(file.filename).split('.')[0]+'.png'
 
19
  file_name = file.filename
20
  image = cv2.imread(secure_filename(file_name))
21
  w,h = image.shape[1],image.shape[0]
22
+ image = cv2.resize(output,(int(w*.79),int(h*.79)))
23
+ cv2.imwrite(secure_filename(file.filename),image)
24
  os.system("uname -a")
25
  #output = remove(image) # remove background
26
  outputName = secure_filename(file.filename).split('.')[0]+'.png'