fffiloni commited on
Commit
ea87659
·
verified ·
1 Parent(s): 6903495

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -28,18 +28,20 @@ os.makedirs(TMP_DIR, exist_ok=True)
28
 
29
  HOLOPART_CODE_DIR = "./holopart"
30
  if not os.path.exists(HOLOPART_REPO_URL):
31
- os.system(f"git clone {HOLOPART_REPO_URL} {HOLOPART_CODE_DIR}")
32
 
33
  import sys
34
  sys.path.append(HOLOPART_CODE_DIR)
35
  sys.path.append(os.path.join(HOLOPART_CODE_DIR, "scripts"))
36
 
 
37
  EXAMPLES = [
38
  ["./holopart/assets/example_data/000.glb", "./holopart/assets/example_data/000.png"],
39
  ["./holopart/assets/example_data/001.glb", "./holopart/assets/example_data/001.png"],
40
  ["./holopart/assets/example_data/002.glb", "./holopart/assets/example_data/002.png"],
41
  ["./holopart/assets/example_data/003.glb", "./holopart/assets/example_data/003.png"],
42
  ]
 
43
 
44
  HEADER = """
45
  # 🔮 Decompose a 3D shape into complete parts with [HoloPart](https://github.com/VAST-AI-Research/HoloPart).
@@ -216,6 +218,7 @@ with gr.Blocks(title="HoloPart") as demo:
216
  model_output = gr.Model3D(label="Decomposed GLB", interactive=False)
217
  exploded_parts_output = gr.Model3D(label="Exploded Parts", interactive=False)
218
 
 
219
  with gr.Row():
220
  examples = gr.Examples(
221
  examples=EXAMPLES,
@@ -224,6 +227,7 @@ with gr.Blocks(title="HoloPart") as demo:
224
  outputs=[model_output, exploded_parts_output],
225
  cache_examples=True,
226
  )
 
227
 
228
 
229
  gen_button.click(
 
28
 
29
  HOLOPART_CODE_DIR = "./holopart"
30
  if not os.path.exists(HOLOPART_REPO_URL):
31
+ os.system(f"GIT_LFS_SKIP_SMUDGE=1 git clone {HOLOPART_REPO_URL} {HOLOPART_CODE_DIR}")
32
 
33
  import sys
34
  sys.path.append(HOLOPART_CODE_DIR)
35
  sys.path.append(os.path.join(HOLOPART_CODE_DIR, "scripts"))
36
 
37
+ """
38
  EXAMPLES = [
39
  ["./holopart/assets/example_data/000.glb", "./holopart/assets/example_data/000.png"],
40
  ["./holopart/assets/example_data/001.glb", "./holopart/assets/example_data/001.png"],
41
  ["./holopart/assets/example_data/002.glb", "./holopart/assets/example_data/002.png"],
42
  ["./holopart/assets/example_data/003.glb", "./holopart/assets/example_data/003.png"],
43
  ]
44
+ """
45
 
46
  HEADER = """
47
  # 🔮 Decompose a 3D shape into complete parts with [HoloPart](https://github.com/VAST-AI-Research/HoloPart).
 
218
  model_output = gr.Model3D(label="Decomposed GLB", interactive=False)
219
  exploded_parts_output = gr.Model3D(label="Exploded Parts", interactive=False)
220
 
221
+ """
222
  with gr.Row():
223
  examples = gr.Examples(
224
  examples=EXAMPLES,
 
227
  outputs=[model_output, exploded_parts_output],
228
  cache_examples=True,
229
  )
230
+ """
231
 
232
 
233
  gen_button.click(