Spaces:
Runtime error
Runtime error
Commit
•
ebb7062
1
Parent(s):
a761a7c
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from gradio_model3dgs import Model3DGS
|
3 |
+
|
4 |
+
|
5 |
+
def load_splat(splat_file_name):
|
6 |
+
return splat_file_name
|
7 |
+
|
8 |
+
|
9 |
+
demo = gr.Interface(
|
10 |
+
fn=load_splat,
|
11 |
+
inputs=Model3DGS(),
|
12 |
+
outputs=Model3DGS(),
|
13 |
+
examples=[
|
14 |
+
"https://huggingface.co/datasets/dylanebert/3dgs/resolve/main/bonsai/bonsai-7k.splat"
|
15 |
+
],
|
16 |
+
cache_examples=True,
|
17 |
+
)
|
18 |
+
|
19 |
+
|
20 |
+
demo.launch()
|