| #!/usr/bin/env python | |
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| with gr.Tabs(): | |
| with gr.Tab(label="a"): | |
| out1 = gr.Model3D(value="data.ply") | |
| with gr.Tab(label="b"): | |
| out2 = gr.Model3D(value="data.ply") | |
| if __name__ == "__main__": | |
| demo.queue().launch() | |