File size: 391 Bytes
eb7b937
520eb11
eb7b937
 
 
 
 
 
 
 
7405bd1
 
f6dc941
 
 
 
eb7b937
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
import os


def load_splat(url):
    return url


demo = gr.Interface(
    fn=load_splat,
    inputs=gr.Model3D(),
    outputs=gr.Model3D(),
    examples=[
        os.path.join(os.path.dirname(__file__), "bonsai-7k-mini.splat"),
        os.path.join(os.path.dirname(__file__), "bonsai.ply")
    ],
    cache_examples=True,
)

if __name__ == "__main__":
    demo.launch()