{"id":16681959,"url":"https://github.com/cmccomb/tease","last_synced_at":"2025-04-09T23:12:27.327Z","repository":{"id":40529621,"uuid":"502409802","full_name":"cmccomb/tease","owner":"cmccomb","description":"Demo your machine learning model in rust 🦀","archived":false,"fork":false,"pushed_at":"2022-06-29T22:04:18.000Z","size":3969,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T23:12:22.543Z","etag":null,"topics":["demo","interfaces","machine-learning","rust-lang","smartcore"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/tease","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmccomb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-11T17:10:07.000Z","updated_at":"2023-10-26T03:52:34.000Z","dependencies_parsed_at":"2022-08-27T20:23:36.283Z","dependency_job_id":null,"html_url":"https://github.com/cmccomb/tease","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccomb%2Ftease","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccomb%2Ftease/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccomb%2Ftease/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccomb%2Ftease/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmccomb","download_url":"https://codeload.github.com/cmccomb/tease/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125588,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo","interfaces","machine-learning","rust-lang","smartcore"],"created_at":"2024-10-12T14:05:47.790Z","updated_at":"2025-04-09T23:12:27.303Z","avatar_url":"https://github.com/cmccomb.png","language":"HTML","readme":"[![Github CI](https://github.com/cmccomb/tease/actions/workflows/tests.yml/badge.svg)](https://github.com/cmccomb/tease/actions)\n[![Crates.io](https://img.shields.io/crates/v/tease.svg)](https://crates.io/crates/tease)\n[![docs.rs](https://img.shields.io/docsrs/tease/latest?logo=rust)](https://docs.rs/tease)\n\n# About _tease_\nThis 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](https://gradio.app/).\n\n# Usage\nRunning this code will produce a GUI for adding two numbers together\n```rust, no_run\nuse tease::{Teaser, Input};\nTeaser::default()\n    .with_title(\"Addition\".to_string())\n    .with_description(\"This is for adding things together.\".to_string())\n    .with_inputs(vec![Input::default(); 2])\n    .with_function(|x: Vec\u003cf32\u003e| x.iter().sum())\n    .run();\n```\nAnd it will look something like this:\n![](https://raw.githubusercontent.com/cmccomb/tease/master/assets/addition.png)\nBut, you can also run more complex demos! Take a look at [this example](https://github.com/cmccomb/tease/blob/master/examples/smartcore.rs), for instance. It trains a smartcore machine learning model and then outputs a GUI for it!\n![](https://raw.githubusercontent.com/cmccomb/tease/master/assets/smartcore.png)\n_The best part is that the compiled binary can be distributed as a standalone teaser of your model!_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmccomb%2Ftease","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmccomb%2Ftease","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmccomb%2Ftease/lists"}