Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
import copy
|
3 |
-
import spaces
|
4 |
from PIL import Image
|
5 |
import matplotlib
|
6 |
import numpy as np
|
@@ -36,7 +36,7 @@ def create_segmentation(mask_np_list):
|
|
36 |
return segmentation
|
37 |
|
38 |
|
39 |
-
|
40 |
def run_segmentation_wrapper(image):
|
41 |
try:
|
42 |
image, mask_np_list,mask_label_list = run_segmentation(image)
|
|
|
1 |
import os
|
2 |
import copy
|
3 |
+
#import spaces
|
4 |
from PIL import Image
|
5 |
import matplotlib
|
6 |
import numpy as np
|
|
|
36 |
return segmentation
|
37 |
|
38 |
|
39 |
+
#@spaces.GPU
|
40 |
def run_segmentation_wrapper(image):
|
41 |
try:
|
42 |
image, mask_np_list,mask_label_list = run_segmentation(image)
|