- handler.py +4 -2
handler.py
CHANGED
@@ -13,7 +13,7 @@ class EndpointHandler():
|
|
13 |
def __init__(self, path="."):
|
14 |
is_production = True
|
15 |
|
16 |
-
if
|
17 |
return
|
18 |
|
19 |
os.chdir(path)
|
@@ -27,7 +27,9 @@ class EndpointHandler():
|
|
27 |
|
28 |
# Install Grounding DINO
|
29 |
subprocess.run(["python", "-m", "pip", "install", "-e", "GroundingDINO"])
|
30 |
-
|
|
|
|
|
31 |
subprocess.run("wget https://huggingface.co/Uminosachi/sam-hq/resolve/main/sam_hq_vit_h.pth -O ./sam_hq_vit_h.pth", shell=True)
|
32 |
|
33 |
# Install diffusers
|
|
|
13 |
def __init__(self, path="."):
|
14 |
is_production = True
|
15 |
|
16 |
+
if True:
|
17 |
return
|
18 |
|
19 |
os.chdir(path)
|
|
|
27 |
|
28 |
# Install Grounding DINO
|
29 |
subprocess.run(["python", "-m", "pip", "install", "-e", "GroundingDINO"])
|
30 |
+
|
31 |
+
return
|
32 |
+
|
33 |
subprocess.run("wget https://huggingface.co/Uminosachi/sam-hq/resolve/main/sam_hq_vit_h.pth -O ./sam_hq_vit_h.pth", shell=True)
|
34 |
|
35 |
# Install diffusers
|