Spaces:
Potre1qw
/
Running on Zero

Potre1qw commited on
Commit
e1750ea
1 Parent(s): 16acb26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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):