Spaces:
Running
on
Zero
Running
on
Zero
sp
Browse files
app.py
CHANGED
@@ -11,6 +11,9 @@ from gradio_image_prompter import ImagePrompter
|
|
11 |
from PIL import Image, ImageDraw
|
12 |
import numpy as np
|
13 |
from sam2.sam2_image_predictor import SAM2ImagePredictor
|
|
|
|
|
|
|
14 |
|
15 |
# class SAM2PredictorSingleton:
|
16 |
# _instance = None
|
|
|
11 |
from PIL import Image, ImageDraw
|
12 |
import numpy as np
|
13 |
from sam2.sam2_image_predictor import SAM2ImagePredictor
|
14 |
+
import subprocess
|
15 |
+
|
16 |
+
subprocess.run("rm -rf /data-nvme/zerogpu-offload/*", env={}, shell=True)
|
17 |
|
18 |
# class SAM2PredictorSingleton:
|
19 |
# _instance = None
|