tease 0.5.2

Build interactive desktop demos for Rust functions and machine-learning models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use tease::{Input, Teaser};

fn main() -> Result<(), tease::Error> {
    Teaser::default()
        .with_title("Addition")
        .with_description("Add two numbers together.")
        .with_inputs(vec![
            Input::number("First number", 0.0),
            Input::number("Second number", 0.0),
        ])
        .with_function(|x| x.iter().sum())
        .run()
}