Spaces:
Running
on
Zero
Running
on
Zero
Update to 0.23.0
Browse files- .gitignore +11 -0
- app.py +1 -26
- gradio_rerun-0.23.0rc3-py3-none-any.whl +0 -3
- gradio_rerun-0.23.0rc3.tar.gz +0 -3
- requirements.txt +1 -1
.gitignore
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.eggs/
|
2 |
+
dist/
|
3 |
+
*.pyc
|
4 |
+
__pycache__/
|
5 |
+
*.py[cod]
|
6 |
+
*$py.class
|
7 |
+
__tmp/*
|
8 |
+
*.pyi
|
9 |
+
.mypy_cache/
|
10 |
+
.ruff_cache
|
11 |
+
.venv/
|
app.py
CHANGED
@@ -1,40 +1,15 @@
|
|
1 |
"""
|
2 |
-
Demonstrates integrating Rerun visualization with Gradio.
|
3 |
-
|
4 |
-
Provides example implementations of data streaming, keypoint annotation, and dynamic
|
5 |
-
visualization across multiple Gradio tabs using Rerun's recording and visualization capabilities.
|
6 |
"""
|
7 |
|
8 |
-
import math
|
9 |
-
import os
|
10 |
-
import tempfile
|
11 |
-
import time
|
12 |
import uuid
|
13 |
-
|
14 |
-
import subprocess
|
15 |
-
|
16 |
-
subprocess.run(
|
17 |
-
"pip install gradio_rerun-0.23.0rc3.tar.gz",
|
18 |
-
shell=True,
|
19 |
-
)
|
20 |
-
|
21 |
-
|
22 |
-
import cv2
|
23 |
import gradio as gr
|
24 |
import rerun as rr
|
25 |
import rerun.blueprint as rrb
|
26 |
from gradio_rerun import Rerun
|
27 |
-
from gradio_rerun.events import (
|
28 |
-
SelectionChange,
|
29 |
-
TimelineChange,
|
30 |
-
TimeUpdate,
|
31 |
-
)
|
32 |
import spaces
|
33 |
from transformers import DetrImageProcessor, DetrForObjectDetection
|
34 |
import torch
|
35 |
-
from PIL import Image
|
36 |
-
import requests
|
37 |
-
|
38 |
|
39 |
processor = DetrImageProcessor.from_pretrained("facebook/detr-resnet-50")
|
40 |
model = DetrForObjectDetection.from_pretrained("facebook/detr-resnet-50")
|
|
|
1 |
"""
|
2 |
+
Demonstrates integrating Rerun visualization with Gradio and HF ZeroGPU.
|
|
|
|
|
|
|
3 |
"""
|
4 |
|
|
|
|
|
|
|
|
|
5 |
import uuid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
import gradio as gr
|
7 |
import rerun as rr
|
8 |
import rerun.blueprint as rrb
|
9 |
from gradio_rerun import Rerun
|
|
|
|
|
|
|
|
|
|
|
10 |
import spaces
|
11 |
from transformers import DetrImageProcessor, DetrForObjectDetection
|
12 |
import torch
|
|
|
|
|
|
|
13 |
|
14 |
processor = DetrImageProcessor.from_pretrained("facebook/detr-resnet-50")
|
15 |
model = DetrForObjectDetection.from_pretrained("facebook/detr-resnet-50")
|
gradio_rerun-0.23.0rc3-py3-none-any.whl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:3c5e620496727c54159aaeea3dab371460e619668d7eae9f83b0cd259a78813a
|
3 |
-
size 14923480
|
|
|
|
|
|
|
|
gradio_rerun-0.23.0rc3.tar.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:36cfb6d7d8d4a030239df29e310faee54f40fd61929b0a37adb6178de5b22327
|
3 |
-
size 55740754
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
@@ -68,7 +68,7 @@ pytz==2025.2
|
|
68 |
PyYAML==6.0.2
|
69 |
regex==2024.11.6
|
70 |
requests==2.32.3
|
71 |
-
rerun-sdk==0.23.
|
72 |
rich==14.0.0
|
73 |
ruff==0.11.5
|
74 |
safehttpx==0.1.6
|
|
|
68 |
PyYAML==6.0.2
|
69 |
regex==2024.11.6
|
70 |
requests==2.32.3
|
71 |
+
rerun-sdk==0.23.0
|
72 |
rich==14.0.0
|
73 |
ruff==0.11.5
|
74 |
safehttpx==0.1.6
|