geshang commited on
Commit
0dce3c6
·
verified ·
1 Parent(s): d42b433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -83,6 +83,7 @@ except Exception as e:
83
 
84
  # SAM Wrapper
85
  class CustomSAMWrapper:
 
86
  def __init__(self, model_path: str, device: str = DEVICE):
87
  try:
88
  self.device = torch.device(device)
 
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)