Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,3 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
# Downloading files from the demo repo
|
4 |
-
import os
|
5 |
-
os.mkdir('files')
|
6 |
-
wget -q -O files/Bunny.obj https://github.com/gradio-app/gradio/raw/main/demo/model3D/files/Bunny.obj
|
7 |
-
wget -q -O files/Duck.glb https://github.com/gradio-app/gradio/raw/main/demo/model3D/files/Duck.glb
|
8 |
-
wget -q -O files/Fox.gltf https://github.com/gradio-app/gradio/raw/main/demo/model3D/files/Fox.gltf
|
9 |
-
wget -q -O files/face.obj https://github.com/gradio-app/gradio/raw/main/demo/model3D/files/face.obj
|
10 |
-
wget -q -O files/sofia.stl https://github.com/gradio-app/gradio/raw/main/demo/model3D/files/sofia.stl
|
11 |
-
wget -q -O files/source.txt https://github.com/gradio-app/gradio/raw/main/demo/model3D/files/source.txt
|
12 |
-
|
13 |
import gradio as gr
|
14 |
import os
|
15 |
|
@@ -24,11 +12,11 @@ demo = gr.Interface(
|
|
24 |
outputs=gr.Model3D(
|
25 |
clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
|
26 |
examples=[
|
27 |
-
[os.path.join(os.path.
|
28 |
-
[os.path.join(os.path.
|
29 |
-
[os.path.join(os.path.
|
30 |
-
[os.path.join(os.path.
|
31 |
-
[os.path.join(os.path.
|
32 |
["https://huggingface.co/datasets/dylanebert/3dgs/resolve/main/bonsai/bonsai-7k-mini.splat"],
|
33 |
["https://huggingface.co/datasets/dylanebert/3dgs/resolve/main/luigi/luigi.ply"],
|
34 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
|
|
12 |
outputs=gr.Model3D(
|
13 |
clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
|
14 |
examples=[
|
15 |
+
[os.path.join(os.path.dirname(__file__), "files/Bunny.obj")],
|
16 |
+
[os.path.join(os.path.dirname(__file__), "files/Duck.glb")],
|
17 |
+
[os.path.join(os.path.dirname(__file__), "files/Fox.gltf")],
|
18 |
+
[os.path.join(os.path.dirname(__file__), "files/face.obj")],
|
19 |
+
[os.path.join(os.path.dirname(__file__), "files/sofia.stl")],
|
20 |
["https://huggingface.co/datasets/dylanebert/3dgs/resolve/main/bonsai/bonsai-7k-mini.splat"],
|
21 |
["https://huggingface.co/datasets/dylanebert/3dgs/resolve/main/luigi/luigi.ply"],
|
22 |
],
|