---
tags: [gradio-custom-component, SimpleImage, multimodal data, visualization, machine learning, robotics]
title: gradio_rerun
short_description: Rerun viewer with Gradio
colorFrom: blue
colorTo: yellow
sdk: gradio
pinned: false
app_file: space.py
---
# `gradio_rerun`
<a href="https://pypi.org/project/gradio_rerun/" target="_blank"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/gradio_rerun"></a> <a href="https://github.com/radames/gradio-rerun-viewer/issues" target="_blank"><img alt="Static Badge" src="https://img.shields.io/badge/Issues-white?logo=github&logoColor=black"></a>
Rerun viewer with Gradio
## Installation
```bash
pip install gradio_rerun
```
## Usage
```python
import cv2
import os
import tempfile
import time
import gradio as gr
from gradio_rerun import Rerun
import rerun as rr
import rerun.blueprint as rrb
from color_grid import build_color_grid
# NOTE: Functions that work with Rerun should be decorated with `@rr.thread_local_stream`.
# This decorator creates a generator-aware thread-local context so that rerun log calls
# across multiple workers stay isolated.
# A task can directly log to a binary stream, which is routed to the embedded viewer.
# Incremental chunks are yielded to the viewer using `yield stream.read()`.
#
# This is the preferred way to work with Rerun in Gradio since your data can be immediately and
# incrementally seen by the viewer. Also, there are no ephemeral RRDs to cleanup or manage.
@rr.thread_local_stream("rerun_example_streaming_blur")
def streaming_repeated_blur(img):
stream = rr.binary_stream()
if img is None:
raise gr.Error("Must provide an image to blur.")
blueprint = rrb.Blueprint(
rrb.Horizontal(
rrb.Spatial2DView(origin="image/original"),
rrb.Spatial2DView(origin="image/blurred"),
),
collapse_panels=True,
)
rr.send_blueprint(blueprint)
rr.set_time_sequence("iteration", 0)
rr.log("image/original", rr.Image(img))
yield stream.read()
blur = img
for i in range(100):
rr.set_time_sequence("iteration", i)
# Pretend blurring takes a while so we can see streaming in action.
time.sleep(0.1)
blur = cv2.GaussianBlur(blur, (5, 5), 0)
rr.log("image/blurred", rr.Image(blur))
# Each time we yield bytes from the stream back to Gradio, they
# are incrementally sent to the viewer. Make sure to yield any time
# you want the user to be able to see progress.
yield stream.read()
# However, if you have a workflow that creates an RRD file instead, you can still send it
# directly to the viewer by simply returning the path to the RRD file.
#
# This may be helpful if you need to execute a helper tool written in C++ or Rust that can't
# be easily modified to stream data directly via Gradio.
#
# In this case you may want to clean up the RRD file after it's sent to the viewer so that you
# don't accumulate too many temporary files.
@rr.thread_local_stream("rerun_example_cube_rrd")
def create_cube_rrd(x, y, z, pending_cleanup):
cube = build_color_grid(int(x), int(y), int(z), twist=0)
rr.log("cube", rr.Points3D(cube.positions, colors=cube.colors, radii=0.5))
# We eventually want to clean up the RRD file after it's sent to the viewer, so tracking
# any pending files to be cleaned up when the state is deleted.
temp = tempfile.NamedTemporaryFile(prefix="cube_", suffix=".rrd", delete=False)
pending_cleanup.append(temp.name)
blueprint = rrb.Spatial3DView(origin="cube")
rr.save(temp.name, default_blueprint=blueprint)
# Just return the name of the file -- Gradio will convert it to a FileData object
# and send it to the viewer.
return temp.name
def cleanup_cube_rrds(pending_cleanup):
for f in pending_cleanup:
os.unlink(f)
with gr.Blocks() as demo:
with gr.Tab("Streaming"):
with gr.Row():
img = gr.Image(interactive=True, label="Image")
with gr.Column():
stream_blur = gr.Button("Stream Repeated Blur")
with gr.Row():
viewer = Rerun(
streaming=True,
panel_states={
"time": "collapsed",
"blueprint": "hidden",
"selection": "hidden",
},
)
stream_blur.click(streaming_repeated_blur, inputs=[img], outputs=[viewer])
with gr.Tab("Dynamic RRD"):
pending_cleanup = gr.State(
[], time_to_live=10, delete_callback=cleanup_cube_rrds
)
with gr.Row():
x_count = gr.Number(
minimum=1, maximum=10, value=5, precision=0, label="X Count"
)
y_count = gr.Number(
minimum=1, maximum=10, value=5, precision=0, label="Y Count"
)
z_count = gr.Number(
minimum=1, maximum=10, value=5, precision=0, label="Z Count"
)
with gr.Row():
create_rrd = gr.Button("Create RRD")
with gr.Row():
viewer = Rerun(
streaming=True,
panel_states={
"time": "collapsed",
"blueprint": "hidden",
"selection": "hidden",
},
)
create_rrd.click(
create_cube_rrd,
inputs=[x_count, y_count, z_count, pending_cleanup],
outputs=[viewer],
)
with gr.Tab("Hosted RRD"):
with gr.Row():
# It may be helpful to point the viewer to a hosted RRD file on another server.
# If an RRD file is hosted via http, you can just return a URL to the file.
choose_rrd = gr.Dropdown(
label="RRD",
choices=[
f"{rr.bindings.get_app_url()}/examples/arkit_scenes.rrd",
f"{rr.bindings.get_app_url()}/examples/dna.rrd",
f"{rr.bindings.get_app_url()}/examples/plots.rrd",
],
)
with gr.Row():
viewer = Rerun(
streaming=True,
panel_states={
"time": "collapsed",
"blueprint": "hidden",
"selection": "hidden",
},
)
choose_rrd.change(lambda x: x, inputs=[choose_rrd], outputs=[viewer])
if __name__ == "__main__":
demo.launch()
```
## `Rerun`
### Initialization
<table>
<thead>
<tr>
<th align="left">name</th>
<th align="left" style="width: 25%;">type</th>
<th align="left">default</th>
<th align="left">description</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><code>value</code></td>
<td align="left" style="width: 25%;">
```python
list[pathlib.Path | str]
| pathlib.Path
| str
| bytes
| Callable
| None
```
</td>
<td align="left"><code>None</code></td>
<td align="left">Takes a singular or list of RRD resources. Each RRD can be a Path, a string containing a url, or a binary blob containing encoded RRD data. If callable, the function will be called whenever the app loads to set the initial value of the component.</td>
</tr>
<tr>
<td align="left"><code>label</code></td>
<td align="left" style="width: 25%;">
```python
str | None
```
</td>
<td align="left"><code>None</code></td>
<td align="left">The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.</td>
</tr>
<tr>
<td align="left"><code>every</code></td>
<td align="left" style="width: 25%;">
```python
float | None
```
</td>
<td align="left"><code>None</code></td>
<td align="left">If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. Queue must be enabled. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.</td>
</tr>
<tr>
<td align="left"><code>show_label</code></td>
<td align="left" style="width: 25%;">
```python
bool | None
```
</td>
<td align="left"><code>None</code></td>
<td align="left">if True, will display label.</td>
</tr>
<tr>
<td align="left"><code>container</code></td>
<td align="left" style="width: 25%;">
```python
bool
```
</td>
<td align="left"><code>True</code></td>
<td align="left">If True, will place the component in a container - providing some extra padding around the border.</td>
</tr>
<tr>
<td align="left"><code>scale</code></td>
<td align="left" style="width: 25%;">
```python
int | None
```
</td>
<td align="left"><code>None</code></td>
<td align="left">relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.</td>
</tr>
<tr>
<td align="left"><code>min_width</code></td>
<td align="left" style="width: 25%;">
```python
int
```
</td>
<td align="left"><code>160</code></td>
<td align="left">minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.</td>
</tr>
<tr>
<td align="left"><code>height</code></td>
<td align="left" style="width: 25%;">
```python
int | str
```
</td>
<td align="left"><code>640</code></td>
<td align="left">height of component in pixels. If a string is provided, will be interpreted as a CSS value. If None, will be set to 640px.</td>
</tr>
<tr>
<td align="left"><code>visible</code></td>
<td align="left" style="width: 25%;">
```python
bool
```
</td>
<td align="left"><code>True</code></td>
<td align="left">If False, component will be hidden.</td>
</tr>
<tr>
<td align="left"><code>streaming</code></td>
<td align="left" style="width: 25%;">
```python
bool
```
</td>
<td align="left"><code>False</code></td>
<td align="left">If True, the data should be incrementally yielded from the source as `bytes` returned by calling `.read()` on an `rr.binary_stream()`</td>
</tr>
<tr>
<td align="left"><code>elem_id</code></td>
<td align="left" style="width: 25%;">
```python
str | None
```
</td>
<td align="left"><code>None</code></td>
<td align="left">An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.</td>
</tr>
<tr>
<td align="left"><code>elem_classes</code></td>
<td align="left" style="width: 25%;">
```python
list[str] | str | None
```
</td>
<td align="left"><code>None</code></td>
<td align="left">An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.</td>
</tr>
<tr>
<td align="left"><code>render</code></td>
<td align="left" style="width: 25%;">
```python
bool
```
</td>
<td align="left"><code>True</code></td>
<td align="left">If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.</td>
</tr>
<tr>
<td align="left"><code>panel_states</code></td>
<td align="left" style="width: 25%;">
```python
dict[str, Any] | None
```
</td>
<td align="left"><code>None</code></td>
<td align="left">Force viewer panels to a specific state. Any panels set cannot be toggled by the user in the viewer. Panel names are "top", "blueprint", "selection", and "time". States are "hidden", "collapsed", and "expanded".</td>
</tr>
</tbody></table>
### User function
The impact on the users predict function varies depending on whether the component is used as an input or output for an event (or both).
- When used as an Input, the component only impacts the input signature of the user function.
- When used as an output, the component only impacts the return signature of the user function.
The code snippet below is accurate in cases where the component is used as both an input and an output.
- **As output:** Is passed, a RerunData object.
- **As input:** Should return, expects.
```python
def predict(
value: RerunData | None
) -> list[pathlib.Path | str] | pathlib.Path | str | bytes:
return value
```
## `RerunData`
```python
class RerunData(GradioRootModel):
root: list[FileData | str]
```
Raw data
{
"_id": null,
"home_page": null,
"name": "gradio-rerun",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "Rerun, gradio-custom-component, machine learning, multimodal data, rerun-viewer, robotics, visualization",
"author": null,
"author_email": "Radam\u00e9s Ajna <radamajna@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/4c/60/20f12781d9dd304628564135cd39e0dc35110392fda326d9e3748ec6f69c/gradio_rerun-0.0.8.tar.gz",
"platform": null,
"description": "---\ntags: [gradio-custom-component, SimpleImage, multimodal data, visualization, machine learning, robotics]\ntitle: gradio_rerun\nshort_description: Rerun viewer with Gradio\ncolorFrom: blue\ncolorTo: yellow\nsdk: gradio\npinned: false\napp_file: space.py\n---\n\n# `gradio_rerun`\n<a href=\"https://pypi.org/project/gradio_rerun/\" target=\"_blank\"><img alt=\"PyPI - Version\" src=\"https://img.shields.io/pypi/v/gradio_rerun\"></a> <a href=\"https://github.com/radames/gradio-rerun-viewer/issues\" target=\"_blank\"><img alt=\"Static Badge\" src=\"https://img.shields.io/badge/Issues-white?logo=github&logoColor=black\"></a> \n\nRerun viewer with Gradio\n\n## Installation\n\n```bash\npip install gradio_rerun\n```\n\n## Usage\n\n```python\nimport cv2\nimport os\nimport tempfile\nimport time\n\nimport gradio as gr\nfrom gradio_rerun import Rerun\n\nimport rerun as rr\nimport rerun.blueprint as rrb\n\nfrom color_grid import build_color_grid\n\n# NOTE: Functions that work with Rerun should be decorated with `@rr.thread_local_stream`.\n# This decorator creates a generator-aware thread-local context so that rerun log calls\n# across multiple workers stay isolated.\n\n\n# A task can directly log to a binary stream, which is routed to the embedded viewer.\n# Incremental chunks are yielded to the viewer using `yield stream.read()`.\n#\n# This is the preferred way to work with Rerun in Gradio since your data can be immediately and\n# incrementally seen by the viewer. Also, there are no ephemeral RRDs to cleanup or manage.\n@rr.thread_local_stream(\"rerun_example_streaming_blur\")\ndef streaming_repeated_blur(img):\n stream = rr.binary_stream()\n\n if img is None:\n raise gr.Error(\"Must provide an image to blur.\")\n\n blueprint = rrb.Blueprint(\n rrb.Horizontal(\n rrb.Spatial2DView(origin=\"image/original\"),\n rrb.Spatial2DView(origin=\"image/blurred\"),\n ),\n collapse_panels=True,\n )\n\n rr.send_blueprint(blueprint)\n\n rr.set_time_sequence(\"iteration\", 0)\n\n rr.log(\"image/original\", rr.Image(img))\n yield stream.read()\n\n blur = img\n\n for i in range(100):\n rr.set_time_sequence(\"iteration\", i)\n\n # Pretend blurring takes a while so we can see streaming in action.\n time.sleep(0.1)\n blur = cv2.GaussianBlur(blur, (5, 5), 0)\n\n rr.log(\"image/blurred\", rr.Image(blur))\n\n # Each time we yield bytes from the stream back to Gradio, they\n # are incrementally sent to the viewer. Make sure to yield any time\n # you want the user to be able to see progress.\n yield stream.read()\n\n\n# However, if you have a workflow that creates an RRD file instead, you can still send it\n# directly to the viewer by simply returning the path to the RRD file.\n#\n# This may be helpful if you need to execute a helper tool written in C++ or Rust that can't\n# be easily modified to stream data directly via Gradio.\n#\n# In this case you may want to clean up the RRD file after it's sent to the viewer so that you\n# don't accumulate too many temporary files.\n@rr.thread_local_stream(\"rerun_example_cube_rrd\")\ndef create_cube_rrd(x, y, z, pending_cleanup):\n cube = build_color_grid(int(x), int(y), int(z), twist=0)\n rr.log(\"cube\", rr.Points3D(cube.positions, colors=cube.colors, radii=0.5))\n\n # We eventually want to clean up the RRD file after it's sent to the viewer, so tracking\n # any pending files to be cleaned up when the state is deleted.\n temp = tempfile.NamedTemporaryFile(prefix=\"cube_\", suffix=\".rrd\", delete=False)\n pending_cleanup.append(temp.name)\n\n blueprint = rrb.Spatial3DView(origin=\"cube\")\n rr.save(temp.name, default_blueprint=blueprint)\n\n # Just return the name of the file -- Gradio will convert it to a FileData object\n # and send it to the viewer.\n return temp.name\n\n\ndef cleanup_cube_rrds(pending_cleanup):\n for f in pending_cleanup:\n os.unlink(f)\n\n\nwith gr.Blocks() as demo:\n with gr.Tab(\"Streaming\"):\n with gr.Row():\n img = gr.Image(interactive=True, label=\"Image\")\n with gr.Column():\n stream_blur = gr.Button(\"Stream Repeated Blur\")\n with gr.Row():\n viewer = Rerun(\n streaming=True,\n panel_states={\n \"time\": \"collapsed\",\n \"blueprint\": \"hidden\",\n \"selection\": \"hidden\",\n },\n )\n stream_blur.click(streaming_repeated_blur, inputs=[img], outputs=[viewer])\n\n with gr.Tab(\"Dynamic RRD\"):\n pending_cleanup = gr.State(\n [], time_to_live=10, delete_callback=cleanup_cube_rrds\n )\n with gr.Row():\n x_count = gr.Number(\n minimum=1, maximum=10, value=5, precision=0, label=\"X Count\"\n )\n y_count = gr.Number(\n minimum=1, maximum=10, value=5, precision=0, label=\"Y Count\"\n )\n z_count = gr.Number(\n minimum=1, maximum=10, value=5, precision=0, label=\"Z Count\"\n )\n with gr.Row():\n create_rrd = gr.Button(\"Create RRD\")\n with gr.Row():\n viewer = Rerun(\n streaming=True,\n panel_states={\n \"time\": \"collapsed\",\n \"blueprint\": \"hidden\",\n \"selection\": \"hidden\",\n },\n )\n create_rrd.click(\n create_cube_rrd,\n inputs=[x_count, y_count, z_count, pending_cleanup],\n outputs=[viewer],\n )\n\n with gr.Tab(\"Hosted RRD\"):\n with gr.Row():\n # It may be helpful to point the viewer to a hosted RRD file on another server.\n # If an RRD file is hosted via http, you can just return a URL to the file.\n choose_rrd = gr.Dropdown(\n label=\"RRD\",\n choices=[\n f\"{rr.bindings.get_app_url()}/examples/arkit_scenes.rrd\",\n f\"{rr.bindings.get_app_url()}/examples/dna.rrd\",\n f\"{rr.bindings.get_app_url()}/examples/plots.rrd\",\n ],\n )\n with gr.Row():\n viewer = Rerun(\n streaming=True,\n panel_states={\n \"time\": \"collapsed\",\n \"blueprint\": \"hidden\",\n \"selection\": \"hidden\",\n },\n )\n choose_rrd.change(lambda x: x, inputs=[choose_rrd], outputs=[viewer])\n\n\nif __name__ == \"__main__\":\n demo.launch()\n\n```\n\n## `Rerun`\n\n### Initialization\n\n<table>\n<thead>\n<tr>\n<th align=\"left\">name</th>\n<th align=\"left\" style=\"width: 25%;\">type</th>\n<th align=\"left\">default</th>\n<th align=\"left\">description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"left\"><code>value</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nlist[pathlib.Path | str]\n | pathlib.Path\n | str\n | bytes\n | Callable\n | None\n```\n\n</td>\n<td align=\"left\"><code>None</code></td>\n<td align=\"left\">Takes a singular or list of RRD resources. Each RRD can be a Path, a string containing a url, or a binary blob containing encoded RRD data. If callable, the function will be called whenever the app loads to set the initial value of the component.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>label</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nstr | None\n```\n\n</td>\n<td align=\"left\"><code>None</code></td>\n<td align=\"left\">The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>every</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nfloat | None\n```\n\n</td>\n<td align=\"left\"><code>None</code></td>\n<td align=\"left\">If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. Queue must be enabled. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>show_label</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nbool | None\n```\n\n</td>\n<td align=\"left\"><code>None</code></td>\n<td align=\"left\">if True, will display label.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>container</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nbool\n```\n\n</td>\n<td align=\"left\"><code>True</code></td>\n<td align=\"left\">If True, will place the component in a container - providing some extra padding around the border.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>scale</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nint | None\n```\n\n</td>\n<td align=\"left\"><code>None</code></td>\n<td align=\"left\">relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>min_width</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nint\n```\n\n</td>\n<td align=\"left\"><code>160</code></td>\n<td align=\"left\">minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>height</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nint | str\n```\n\n</td>\n<td align=\"left\"><code>640</code></td>\n<td align=\"left\">height of component in pixels. If a string is provided, will be interpreted as a CSS value. If None, will be set to 640px.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>visible</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nbool\n```\n\n</td>\n<td align=\"left\"><code>True</code></td>\n<td align=\"left\">If False, component will be hidden.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>streaming</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nbool\n```\n\n</td>\n<td align=\"left\"><code>False</code></td>\n<td align=\"left\">If True, the data should be incrementally yielded from the source as `bytes` returned by calling `.read()` on an `rr.binary_stream()`</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>elem_id</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nstr | None\n```\n\n</td>\n<td align=\"left\"><code>None</code></td>\n<td align=\"left\">An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>elem_classes</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nlist[str] | str | None\n```\n\n</td>\n<td align=\"left\"><code>None</code></td>\n<td align=\"left\">An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>render</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\nbool\n```\n\n</td>\n<td align=\"left\"><code>True</code></td>\n<td align=\"left\">If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.</td>\n</tr>\n\n<tr>\n<td align=\"left\"><code>panel_states</code></td>\n<td align=\"left\" style=\"width: 25%;\">\n\n```python\ndict[str, Any] | None\n```\n\n</td>\n<td align=\"left\"><code>None</code></td>\n<td align=\"left\">Force viewer panels to a specific state. Any panels set cannot be toggled by the user in the viewer. Panel names are \"top\", \"blueprint\", \"selection\", and \"time\". States are \"hidden\", \"collapsed\", and \"expanded\".</td>\n</tr>\n</tbody></table>\n\n\n\n\n### User function\n\nThe impact on the users predict function varies depending on whether the component is used as an input or output for an event (or both).\n\n- When used as an Input, the component only impacts the input signature of the user function.\n- When used as an output, the component only impacts the return signature of the user function.\n\nThe code snippet below is accurate in cases where the component is used as both an input and an output.\n\n- **As output:** Is passed, a RerunData object.\n- **As input:** Should return, expects.\n\n ```python\n def predict(\n value: RerunData | None\n ) -> list[pathlib.Path | str] | pathlib.Path | str | bytes:\n return value\n ```\n \n\n## `RerunData`\n```python\nclass RerunData(GradioRootModel):\n root: list[FileData | str]\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Rerun viewer with Gradio",
"version": "0.0.8",
"project_urls": {
"repository": "https://github.com/radames/gradio-rerun-viewer"
},
"split_keywords": [
"rerun",
" gradio-custom-component",
" machine learning",
" multimodal data",
" rerun-viewer",
" robotics",
" visualization"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b2a905fdea851d5c7e4d4d256ae7789d0a64b6e844a637fd010f75944c1e8b43",
"md5": "c734f708b730a5def78f594210e32cd1",
"sha256": "d4587adf65ee7d415973e35c4c44c6dfa7b7ebd3a3f0cbe1d77179a3d0c464b2"
},
"downloads": -1,
"filename": "gradio_rerun-0.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c734f708b730a5def78f594210e32cd1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 11483949,
"upload_time": "2024-10-18T05:30:20",
"upload_time_iso_8601": "2024-10-18T05:30:20.806171Z",
"url": "https://files.pythonhosted.org/packages/b2/a9/05fdea851d5c7e4d4d256ae7789d0a64b6e844a637fd010f75944c1e8b43/gradio_rerun-0.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4c6020f12781d9dd304628564135cd39e0dc35110392fda326d9e3748ec6f69c",
"md5": "a8c295f3297445e64adbd8c91c9705d7",
"sha256": "d5fcd11d36bb184c5fcd4b52641e14f30af33427a72e442b1bd71d0e14079212"
},
"downloads": -1,
"filename": "gradio_rerun-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "a8c295f3297445e64adbd8c91c9705d7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 52655248,
"upload_time": "2024-10-18T05:30:29",
"upload_time_iso_8601": "2024-10-18T05:30:29.256854Z",
"url": "https://files.pythonhosted.org/packages/4c/60/20f12781d9dd304628564135cd39e0dc35110392fda326d9e3748ec6f69c/gradio_rerun-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-18 05:30:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "radames",
"github_project": "gradio-rerun-viewer",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "gradio-rerun"
}