| Crates.io | tease |
| lib.rs | tease |
| version | 0.1.1 |
| created_at | 2022-06-12 18:04:51.034311+00 |
| updated_at | 2022-06-25 17:18:28.926622+00 |
| description | Rapidly prototype interfaces for your machine learning models |
| homepage | https://github.com/cmccomb/tease |
| repository | https://github.com/cmccomb/tease |
| max_upload_size | |
| id | 604702 |
| size | 372,034 |
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.
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!