3DVirtualFood / app.py
awacke1's picture
Update app.py
ba34e1f
raw
history blame
493 Bytes
import time
import gradio as gr
import os
def load_mesh(mesh_file_name):
time.sleep(2)
return mesh_file_name
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__), "Futuristic_Car_2.1_obj.obj")]
],
cache_examples=True,
)
demo.launch()