2个版本
0.1.1 | 2022年6月25日 |
---|---|
0.1.0 | 2022年6月12日 |
#763 in 机器学习
170KB
315 行
关于 tease
此软件包提供快速生成各种可能的 Rust 函数的 GUI(即 teaser)的能力。它旨在用于原型化机器学习模型的界面。受 gradio 启发。
用法
运行此代码将生成一个用于将两个数字相加的 GUI
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();
它看起来可能像这样: 但,您还可以运行更复杂的演示!例如,查看 此示例。它训练了一个 smartcore 机器学习模型,然后输出它的 GUI!
最好的部分是,编译的二进制文件可以作为您模型的独立 teaser 分发!
依赖关系
~5–40MB
~561K SLoC