(example)
| 89 | |
| 90 | |
| 91 | def find_input_path(example): |
| 92 | path = os.path.join(CKPT_DIR, example, "input.glb") |
| 93 | if not os.path.exists(path): |
| 94 | path = os.path.join(CKPT_DIR, example, "input.gltf") |
| 95 | if not os.path.exists(path): |
| 96 | print(f"Input file does not exist: {path}") |
| 97 | path = None |
| 98 | return path |
| 99 | |
| 100 | |
| 101 | with gr.Blocks(title=TITLE) as demo: |