tease 0.1.1

Rapidly prototype interfaces for your machine learning models
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented2 out of 11 items with examples
  • Size
  • Source code size: 371.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 535.86 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2m Average build duration of successful builds.
  • all releases: 2m Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • cmccomb/tease
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cmccomb

Github CI Crates.io docs.rs

About tease

This crate provides the ability to rapidly generate a GUI (a teaser) for a wide array of possible rust functions. It is intended to be used for prototyping interfaces for machine learning models. Inspired by gradio.

Usage

Running this code will produce a GUI for adding two numbers together

use tease::{Teaser, Input};
Teaser::default()
    .with_title("Addition".to_string())
    .with_description("This is for adding things together.".to_string())
    .with_inputs(vec![Input::default(); 2])
    .with_function(move |x| x.iter().sum())
    .run();

And it will look something like this: But, you can also run more complex demos! Take a look at this example, for instance. It trains a smartcore machine learning model and then outputs a GUI for it! The best part is that the compiled binary can be distributed as a standalone teaser of your model!