Junyi42 commited on
Commit
d5bf809
ยท
1 Parent(s): 0f83929
Files changed (3) hide show
  1. README copy.md +0 -34
  2. README.md +30 -8
  3. app.py +1 -1
README copy.md DELETED
@@ -1,34 +0,0 @@
1
- ---
2
- title: Viser Gradio Embed
3
- emoji: ๐Ÿš€
4
- colorFrom: blue
5
- colorTo: pink
6
- sdk: docker
7
- app_port: 7860
8
- pinned: false
9
- ---
10
-
11
- # Viser + Gradio
12
-
13
- Demo for integrating [viser](https://github.com/nerfstudio-project/viser) 3D
14
- visualizations into a [Gradio](https://www.gradio.app/) application.
15
-
16
- - Uses Gradio's session management to create isolated 3D visualization contexts.
17
- - Exposes both Gradio and Viser over the same port.
18
-
19
- ## Deploying on HuggingFace Spaces
20
-
21
- **[ [Live example](https://huggingface.co/spaces/brentyi/viser-gradio-embed) ]**
22
-
23
- This repository should work out-of-the-box with HF Spaces via Docker.
24
-
25
- - Unlike a vanilla Gradio Space, this is unfortunately not supported by [ZeroGPU](https://huggingface.co/docs/hub/en/spaces-zerogpu).
26
-
27
- ## Local Demo
28
-
29
- ```bash
30
- pip install -r requirements.txt
31
- python app.py
32
- ```
33
-
34
- https://github.com/user-attachments/assets/b94a117a-b9e5-4854-805a-8666941c7816
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,12 +1,34 @@
1
  ---
2
- title: Viser Test
3
- emoji: ๐Ÿ†
4
- colorFrom: purple
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 5.23.2
8
- app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Viser Gradio Embed
3
+ emoji: ๐Ÿš€
4
+ colorFrom: blue
5
+ colorTo: pink
6
+ sdk: docker
7
+ app_port: 7860
 
8
  pinned: false
9
  ---
10
 
11
+ # Viser + Gradio
12
+
13
+ Demo for integrating [viser](https://github.com/nerfstudio-project/viser) 3D
14
+ visualizations into a [Gradio](https://www.gradio.app/) application.
15
+
16
+ - Uses Gradio's session management to create isolated 3D visualization contexts.
17
+ - Exposes both Gradio and Viser over the same port.
18
+
19
+ ## Deploying on HuggingFace Spaces
20
+
21
+ **[ [Live example](https://huggingface.co/spaces/brentyi/viser-gradio-embed) ]**
22
+
23
+ This repository should work out-of-the-box with HF Spaces via Docker.
24
+
25
+ - Unlike a vanilla Gradio Space, this is unfortunately not supported by [ZeroGPU](https://huggingface.co/docs/hub/en/spaces-zerogpu).
26
+
27
+ ## Local Demo
28
+
29
+ ```bash
30
+ pip install -r requirements.txt
31
+ python app.py
32
+ ```
33
+
34
+ https://github.com/user-attachments/assets/b94a117a-b9e5-4854-805a-8666941c7816
app.py CHANGED
@@ -14,7 +14,7 @@ def main() -> None:
14
  # Create a Gradio interface with title, iframe, and buttons
15
  with gr.Blocks(title="Viser Viewer") as demo:
16
  # Add a title and description
17
- gr.Markdown("# ๐ŸŒ Viser Interactive Viewer")
18
 
19
  # Add the iframe with a border
20
  add_sphere_btn = gr.Button("Add Random Sphere")
 
14
  # Create a Gradio interface with title, iframe, and buttons
15
  with gr.Blocks(title="Viser Viewer") as demo:
16
  # Add a title and description
17
+ gr.Markdown("# ๐ŸŒ Viser Interactive Viewer Test")
18
 
19
  # Add the iframe with a border
20
  add_sphere_btn = gr.Button("Add Random Sphere")