Spaces:
Build error
Build error
Download app.py from awacke1/3DModelEditorWithAIV1: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/awacke1/3DModelEditorWithAIV1/resolve/main/app.py
- Command line
-
hf download hf://spaces/awacke1/3DModelEditorWithAIV1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/awacke1/3DModelEditorWithAIV1/resolve/main/app.py
1.08 kB
| import time | |
| import gradio as gr | |
| import os | |
| def load_mesh(mesh_file_name): | |
| return mesh_file_name, mesh_file_name | |
| demo = gr.Interface( | |
| fn=load_mesh, | |
| title='🎨HF 2Dto3D.GLB🎈', | |
| article='Create your GLB 3d model with animation from 2d image here: https://monstermash.zone/# Papers and code for SOTA in 3D AI: https://paperswithcode.com/datasets?q=3d&v=lst&o=newest', | |
| inputs=gr.Model3D(), | |
| outputs=[ | |
| gr.Model3D( | |
| clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"), | |
| gr.File(label="Download 3D Model") | |
| ], | |
| examples=[ | |
| [os.path.join(os.path.dirname(__file__), "files/mm_impasto_swirl.glb")], | |
| [os.path.join(os.path.dirname(__file__), "files/hugging_face.glb")], | |
| [os.path.join(os.path.dirname(__file__), "files/Duck.glb")], | |
| [os.path.join(os.path.dirname(__file__), "files/rubber_duck.glb")], | |
| [os.path.join(os.path.dirname(__file__), "files/mm_project.glb")], | |
| [os.path.join(os.path.dirname(__file__), "files/mm_project2.glb")] | |
| ], | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() |