mart9992 commited on
Commit
d311a63
1 Parent(s): 3df311a
Files changed (1) hide show
  1. 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 False:
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