Spaces:
Build error
Build error
| import time | |
| import gradio as gr | |
| import os | |
| def load_mesh(mesh_file_name): | |
| return mesh_file_name | |
| demo = gr.Interface( | |
| fn=load_mesh, | |
| inputs=gr.Model3D(), | |
| outputs=gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"), | |
| examples=[ | |
| ["files/Bunny.obj"], | |
| ["files/Duck.glb"], | |
| ["files/Fox.gltf"], | |
| ["files/face.obj"], | |
| ], | |
| cache_examples=True, | |
| ) | |
| demo.launch() |