Spaces:
Runtime error
Runtime error
Download app.py from r23/ldm3d-space: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/spaces/r23/ldm3d-space/resolve/main/app.py
- Command line
-
hf download hf://spaces/r23/ldm3d-space/app.py
-
curl -L -o app.py https://huggingface.co/spaces/r23/ldm3d-space/resolve/main/app.py
315 Bytes
| import os | |
| os.environ["HF_HOME"] = "/tmp/hf_cache" | |
| from diffusers import StableDiffusionLDM3DPipeline | |
| pipe_ldm3d = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d") | |
| prompt = "A picture of a castle in the mountains" | |
| output = pipe_ldm3d(prompt) | |
| obj_file = output.obj | |
| obj_file[0].save("castle_ldm3d.obj") |