ishworrsubedii commited on
Commit
674109e
Β·
verified Β·
1 Parent(s): 23143ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -31,7 +31,8 @@ class NecklaceTryOn:
31
  def clear_func(self):
32
  torch.cuda.empty_cache()
33
  gc.collect()
34
-
 
35
  def apply_necklace(self, image, jewellery):
36
  """Apply necklace on the image and return modified image and mask."""
37
  image = np.array(image)
 
31
  def clear_func(self):
32
  torch.cuda.empty_cache()
33
  gc.collect()
34
+
35
+ @spaces.GPU
36
  def apply_necklace(self, image, jewellery):
37
  """Apply necklace on the image and return modified image and mask."""
38
  image = np.array(image)