Spaces:
Running
on
Zero
Running
on
Zero
amirgame197
commited on
Commit
•
7de892f
1
Parent(s):
a3504d6
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import gradio as gr
|
3 |
import cv2
|
4 |
import numpy as np
|
@@ -7,7 +7,7 @@ import time
|
|
7 |
from PIL import Image
|
8 |
from transparent_background import Remover
|
9 |
|
10 |
-
|
11 |
def doo(video, mode):
|
12 |
if(mode == 'Normal'):
|
13 |
remover = Remover()
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import cv2
|
4 |
import numpy as np
|
|
|
7 |
from PIL import Image
|
8 |
from transparent_background import Remover
|
9 |
|
10 |
+
@spaces.GPU
|
11 |
def doo(video, mode):
|
12 |
if(mode == 'Normal'):
|
13 |
remover = Remover()
|