Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|