Spaces:
Runtime error
Runtime error
Commit
·
9fc9fdc
1
Parent(s):
5b15c87
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ def inference():
|
|
18 |
file.save(secure_filename(file.filename))
|
19 |
file_name = file.filename
|
20 |
image = cv2.imread(secure_filename(file_name))
|
|
|
21 |
os.system("uname -a")
|
22 |
output = remove(image) # remove background
|
23 |
output = cv2.resize(output,(int(w*.79),int(h*.79)))
|
|
|
18 |
file.save(secure_filename(file.filename))
|
19 |
file_name = file.filename
|
20 |
image = cv2.imread(secure_filename(file_name))
|
21 |
+
w,h = image.shape[1],image.shape[0]
|
22 |
os.system("uname -a")
|
23 |
output = remove(image) # remove background
|
24 |
output = cv2.resize(output,(int(w*.79),int(h*.79)))
|