dylanebert HF staff commited on
Commit
eb7b937
β€’
1 Parent(s): 8df2fe0

add content

Browse files

add requirements

.

.

Files changed (5) hide show
  1. .gitignore +1 -0
  2. README.md +1 -1
  3. __pycache__/app.cpython-310.pyc +0 -0
  4. app.py +20 -0
  5. requirements.txt +67 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ venv/
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Test 3d
3
  emoji: πŸ“‰
4
  colorFrom: red
5
  colorTo: purple
 
1
  ---
2
+ title: Model3DGS Example
3
  emoji: πŸ“‰
4
  colorFrom: red
5
  colorTo: purple
__pycache__/app.cpython-310.pyc ADDED
Binary file (530 Bytes). View file
 
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_model3dgs import Model3DGS
3
+
4
+
5
+ def load_splat(url):
6
+ return url
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-mini.splat"
15
+ ],
16
+ cache_examples=True,
17
+ )
18
+
19
+ if __name__ == "__main__":
20
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiofiles==23.2.1
2
+ altair==5.2.0
3
+ annotated-types==0.6.0
4
+ anyio==4.2.0
5
+ attrs==23.2.0
6
+ certifi==2024.2.2
7
+ charset-normalizer==3.3.2
8
+ click==8.1.7
9
+ colorama==0.4.6
10
+ contourpy==1.2.0
11
+ cycler==0.12.1
12
+ exceptiongroup==1.2.0
13
+ fastapi==0.109.2
14
+ ffmpy==0.3.2
15
+ filelock==3.13.1
16
+ fonttools==4.48.1
17
+ fsspec==2024.2.0
18
+ gradio==4.18.0
19
+ gradio_client==0.10.0
20
+ gradio_model3dgs==0.2.4
21
+ h11==0.14.0
22
+ httpcore==1.0.2
23
+ httpx==0.26.0
24
+ huggingface-hub==0.20.3
25
+ idna==3.6
26
+ importlib-resources==6.1.1
27
+ Jinja2==3.1.3
28
+ jsonschema==4.21.1
29
+ jsonschema-specifications==2023.12.1
30
+ kiwisolver==1.4.5
31
+ markdown-it-py==3.0.0
32
+ MarkupSafe==2.1.5
33
+ matplotlib==3.8.2
34
+ mdurl==0.1.2
35
+ numpy==1.26.4
36
+ orjson==3.9.13
37
+ packaging==23.2
38
+ pandas==2.2.0
39
+ pillow==10.2.0
40
+ pydantic==2.6.1
41
+ pydantic_core==2.16.2
42
+ pydub==0.25.1
43
+ Pygments==2.17.2
44
+ pyparsing==3.1.1
45
+ python-dateutil==2.8.2
46
+ python-multipart==0.0.9
47
+ pytz==2024.1
48
+ PyYAML==6.0.1
49
+ referencing==0.33.0
50
+ requests==2.31.0
51
+ rich==13.7.0
52
+ rpds-py==0.17.1
53
+ ruff==0.2.1
54
+ semantic-version==2.10.0
55
+ shellingham==1.5.4
56
+ six==1.16.0
57
+ sniffio==1.3.0
58
+ starlette==0.36.3
59
+ tomlkit==0.12.0
60
+ toolz==0.12.1
61
+ tqdm==4.66.2
62
+ typer==0.9.0
63
+ typing_extensions==4.9.0
64
+ tzdata==2024.1
65
+ urllib3==2.2.0
66
+ uvicorn==0.27.1
67
+ websockets==11.0.3