Spaces:
Sleeping
Sleeping
Update to latest rerun
Browse files- README.md +2 -2
- app.py +2 -4
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,9 +4,9 @@ emoji: 🔥
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
-
python_version: 3.
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
|
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.27.0
|
| 8 |
app_file: app.py
|
| 9 |
+
python_version: 3.11.0
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
app.py
CHANGED
|
@@ -5,15 +5,13 @@ import gradio as gr
|
|
| 5 |
def show_cube():
|
| 6 |
rr.init("my data")
|
| 7 |
|
| 8 |
-
rec = rr.memory_recording()
|
| 9 |
-
|
| 10 |
positions = np.zeros((10, 3))
|
| 11 |
positions[:,0] = np.linspace(-10,10,10)
|
| 12 |
|
| 13 |
colors = np.zeros((10,3), dtype=np.uint8)
|
| 14 |
colors[:,0] = np.linspace(0,255,10)
|
| 15 |
|
| 16 |
-
rr.
|
| 17 |
-
return
|
| 18 |
|
| 19 |
gr.Interface(show_cube, inputs=None, outputs=["html"]).launch()
|
|
|
|
| 5 |
def show_cube():
|
| 6 |
rr.init("my data")
|
| 7 |
|
|
|
|
|
|
|
| 8 |
positions = np.zeros((10, 3))
|
| 9 |
positions[:,0] = np.linspace(-10,10,10)
|
| 10 |
|
| 11 |
colors = np.zeros((10,3), dtype=np.uint8)
|
| 12 |
colors[:,0] = np.linspace(0,255,10)
|
| 13 |
|
| 14 |
+
rr.log("my_points", rr.Points3D(positions=positions, colors=colors, radii=0.5))
|
| 15 |
+
return rr.as_html()
|
| 16 |
|
| 17 |
gr.Interface(show_cube, inputs=None, outputs=["html"]).launch()
|
requirements.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
rerun-sdk==0.
|
|
|
|
| 1 |
+
rerun-sdk==0.15.1
|