Spaces:
Running
Running
File size: 763 Bytes
3e9df0c 73b0b4b 21a6230 3e9df0c ca0eb10 fe3c2bc 21a6230 3c31be1 704e4c9 5d19fd0 a5f7088 fbd48b2 d3acb13 49704b9 f52a14b 5847e9e c62d4d9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
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", display_mode="wireframe"),
examples=[
[os.path.join(os.path.dirname(__file__), "files/model1.glb")],
[os.path.join(os.path.dirname(__file__), "files/model2.glb")],
[os.path.join(os.path.dirname(__file__), "files/model3.glb")],
[os.path.join(os.path.dirname(__file__), "files/model4.glb")],
["https://huggingface.co/datasets/dylanebert/3dgs/resolve/main/bonsai/bonsai-7k-mini.splat"],
],
cache_examples=True
)
if __name__ == "__main__":
demo.launch()
|