awacke1's picture
Create new file
bb6487b
raw
history blame
781 Bytes
import time
import gradio as gr
import os
AIUIUXEmojisforHealth="πŸ‘©β€βš•οΈπŸ©ΊπŸ’‰πŸ©ΉπŸ§‘πŸΎβ€βš•οΈπŸ©ΈπŸ’ŠπŸ‘¨β€βš•οΈπŸ€“πŸ§ πŸ“šπŸ“–πŸ§πŸŽ“β„ΉοΈπŸ—‚οΈπŸ“βš—οΈπŸ¦ πŸ”¬πŸ§¬πŸ§«"
def load_mesh(mesh_file_name):
return mesh_file_name, 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"),
gr.File(label="Download 3D Model")
],
examples=[
[os.path.join(os.path.dirname(__file__), "files/Duck.glb")],
[os.path.join(os.path.dirname(__file__), "files/rubber_duck.glb")],
[os.path.join(os.path.dirname(__file__), "files/Wolf-Blender-2.82a.glb")]
],
)
if __name__ == "__main__":
demo.launch()