Spaces:
Running
Running
File size: 668 Bytes
fb26ab7 a17124b fb26ab7 ba34e1f a088e4b fb26ab7 a17124b fb26ab7 |
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 |
import time
import gradio as gr
import os
def load_mesh(mesh_file_name):
time.sleep(2)
return mesh_file_name
description="3D Virtual Food 🥐🥑🥒🥓🥔🥕🥖🥗🥘🥙🥚🥛🥜🥝🥞🥟🥠🥡🥢🥣🥤🥥🥦🥧🥨🥩🥪🥫🥬🥭🥮🥯"
inputs = gr.Model3D()
outputs = gr.Model3D(clear_color=[0.8, 0.2, 0.2, 1.0])
demo = gr.Interface(
fn=load_mesh,
inputs=inputs,
outputs=outputs,
examples=[
[os.path.join(os.path.dirname(__file__), "FinalBaseMesh.obj")],
[os.path.join(os.path.dirname(__file__), "BEAR_BLK.OBJ")]
],
description=description,
cache_examples=True,
)
demo.launch() |