Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from transparent_background import Remover
|
|
4 |
from PIL import Image
|
5 |
import numpy as np
|
6 |
|
|
|
7 |
def remove_background(image):
|
8 |
remover = Remover()
|
9 |
if isinstance(image, Image.Image):
|
|
|
4 |
from PIL import Image
|
5 |
import numpy as np
|
6 |
|
7 |
+
@spaces.GPU(duration=20)
|
8 |
def remove_background(image):
|
9 |
remover = Remover()
|
10 |
if isinstance(image, Image.Image):
|