CoolFace
Apppublic

Stereo0001/Model3D

sourceHugging Faceafl-3.0updated 4y agoView on Hugging Face
1likes
app.py23 linesDownload Raw Back to root
1import time2import gradio as gr3import os4 5 6def load_mesh(mesh_file_name):7    return mesh_file_name8 9 10demo = gr.Interface(11    fn=load_mesh,12    inputs=gr.Model3D(),13    outputs=gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0],  label="3D Model"),14    examples=[15        ["files/Bunny.obj"],16        ["files/Duck.glb"],17        ["files/Fox.gltf"],18        ["files/face.obj"],19    ],20    cache_examples=True,21)22 23demo.launch()