Spaces:
Running
on
Zero
Running
on
Zero
amirgame197
commited on
Commit
•
5e5187b
1
Parent(s):
5d213bc
Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,10 @@ from transparent_background import Remover
|
|
9 |
|
10 |
@spaces.GPU()
|
11 |
def doo(video, mode):
|
12 |
-
if(mode == '
|
13 |
-
remover = Remover()
|
14 |
-
else:
|
15 |
remover = Remover(mode='fast')
|
|
|
|
|
16 |
cap = cv2.VideoCapture(video)
|
17 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
18 |
|
|
|
9 |
|
10 |
@spaces.GPU()
|
11 |
def doo(video, mode):
|
12 |
+
if(mode == 'Fast'):
|
|
|
|
|
13 |
remover = Remover(mode='fast')
|
14 |
+
else:
|
15 |
+
remover = Remover()
|
16 |
cap = cv2.VideoCapture(video)
|
17 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
18 |
|