Spaces:
Paused
Paused
A newer version of the Gradio SDK is available: 6.12.0
metadata
title: Operon Optics
emoji: 🔬
colorFrom: purple
colorTo: pink
sdk: gradio
sdk_version: 6.5.1
app_file: app.py
pinned: false
license: mit
short_description: Prism routing and traversal transforms on wiring diagrams
🔬 Optics -- Wire Optic Router
Type-safe data routing and transformation on wires -- prisms filter by data type, traversals map over collections, and composed optics chain into pipelines.
What to Try
- Open the Prism Routing tab, configure two prism wires with different accepted DataTypes, send data through, and see which destination receives it based on type matching.
- Switch to the Traversal Transform tab, enter a list of values, pick a transform (double, uppercase, square, negate), and click Apply to see element-wise processing.
- In the Composed Optics tab, chain a prism filter with a traversal transform and test the pipeline with various DataType values to see how both layers compose.
- Try the Optic + Denature tab to see denaturation filters and optic routing working together on the same wire.
How It Works
PrismOptic accepts specific DataType values and rejects everything else, enabling type-safe fan-out routing. TraversalOptic maps transforms over collections. ComposedOptic chains optics sequentially -- all must accept, and transforms apply left-to-right. On a Wire, denaturation runs first to strip injection vectors, then the optic routes and transforms.