fffiloni commited on
Commit
2ef5adb
·
verified ·
1 Parent(s): d87b25b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -28,20 +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
- # GIT_LFS_SKIP_SMUDGE=1
32
- os.system(f"git clone {HOLOPART_REPO_URL} {HOLOPART_CODE_DIR}")
33
 
34
  import sys
35
  sys.path.append(HOLOPART_CODE_DIR)
36
  sys.path.append(os.path.join(HOLOPART_CODE_DIR, "scripts"))
37
 
38
-
39
  EXAMPLES = [
40
  ["./holopart/assets/example_data/000.glb", "./holopart/assets/example_data/000.png"],
41
  ["./holopart/assets/example_data/001.glb", "./holopart/assets/example_data/001.png"],
42
  ["./holopart/assets/example_data/002.glb", "./holopart/assets/example_data/002.png"],
43
  ["./holopart/assets/example_data/003.glb", "./holopart/assets/example_data/003.png"],
44
  ]
 
45
 
46
 
47
  HEADER = """
@@ -221,7 +221,7 @@ with gr.Blocks(title="HoloPart") as demo:
221
  model_output = gr.Model3D(label="Decomposed GLB", interactive=False)
222
  exploded_parts_output = gr.Model3D(label="Exploded Parts", interactive=False)
223
 
224
-
225
  with gr.Row():
226
  examples = gr.Examples(
227
  examples=EXAMPLES,
@@ -230,6 +230,7 @@ with gr.Blocks(title="HoloPart") as demo:
230
  outputs=[model_output, exploded_parts_output],
231
  cache_examples=True,
232
  )
 
233
 
234
 
235
 
 
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
 
47
  HEADER = """
 
221
  model_output = gr.Model3D(label="Decomposed GLB", interactive=False)
222
  exploded_parts_output = gr.Model3D(label="Exploded Parts", interactive=False)
223
 
224
+ """
225
  with gr.Row():
226
  examples = gr.Examples(
227
  examples=EXAMPLES,
 
230
  outputs=[model_output, exploded_parts_output],
231
  cache_examples=True,
232
  )
233
+ """
234
 
235
 
236