radames commited on
Commit
7b6bb0b
1 Parent(s): cfb0c10
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.rrd filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ rrd_files/
2
+ __pycache__/
README.md CHANGED
@@ -4,9 +4,11 @@ emoji: 🐠
4
  colorFrom: yellow
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 4.27.0
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
 
4
  colorFrom: yellow
5
  colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: 4.28.3
8
  app_file: app.py
9
  pinned: false
10
+ fullWidth: true
11
+ short_description: Running Rerun Viewer with Gradio
12
  ---
13
 
14
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_rerun import Rerun
3
+
4
+
5
+ def predict(file_path: str | list[str]):
6
+ return file_path
7
+
8
+
9
+ with gr.Blocks(css=".gradio-container { max-width: unset!important; }") as demo:
10
+ with gr.Row():
11
+ with gr.Column():
12
+ file_path = gr.File(file_count="multiple", type="filepath")
13
+ with gr.Column():
14
+ pass
15
+ btn = gr.Button("Run", scale=0)
16
+ with gr.Row():
17
+ rerun_viewer = Rerun(height=900)
18
+ inputs = [file_path]
19
+ outputs = [rerun_viewer]
20
+ gr.on(
21
+ [btn.click, file_path.upload],
22
+ fn=predict,
23
+ inputs=inputs,
24
+ outputs=outputs,
25
+ )
26
+ gr.on([btn.click, file_path.upload], fn=predict, inputs=inputs, outputs=outputs)
27
+
28
+
29
+ demo.launch()
examples/rgbd.rrd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23a374ab6f973424d2e6d40d54c90a5898c4ae4c3909987167fc4e349e9f7b35
3
+ size 38623309
examples/rrt-star.rrd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d26f9f5343552292208d232f2480ac24a7a9cebb331ba8ce4fa8ef3a44f5c283
3
+ size 10487798
examples/structure_from_motion.rrd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6b4aae56c08714b4aa230cb2c75682eef8e2e6de1c2ea636e15e4eca0f9e26f
3
+ size 7175301
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ gradio==4.28.3
2
+ gradio_huggingfacehub_search==0.0.7
3
+ fastapi
4
+ gradio_rerun