Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,8 +82,8 @@ except Exception as e:
|
|
| 82 |
processor = None
|
| 83 |
|
| 84 |
# SAM Wrapper
|
|
|
|
| 85 |
class CustomSAMWrapper:
|
| 86 |
-
@spaces.GPU
|
| 87 |
def __init__(self, model_path: str, device: str = DEVICE):
|
| 88 |
# try:
|
| 89 |
self.device = torch.device(device)
|
|
|
|
| 82 |
processor = None
|
| 83 |
|
| 84 |
# SAM Wrapper
|
| 85 |
+
@spaces.GPU
|
| 86 |
class CustomSAMWrapper:
|
|
|
|
| 87 |
def __init__(self, model_path: str, device: str = DEVICE):
|
| 88 |
# try:
|
| 89 |
self.device = torch.device(device)
|