20

The fastest way to build custom ML tools

 4 years ago
source link: https://www.tuicool.com/articles/6Rziea6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Welcome to Streamlit :wave:

The fastest way to build custom ML tools.

Streamlit lets you create apps for your machine learning projects with deceptively simple Python scripts. It supports hot-reloading, so your app updates live as you edit and save your file. No need to mess with HTTP requests, HTML, JavaScript, etc. All you need is your favorite editor and a browser. Take a look at Streamlit in action:

7r2yMzQ.gif

Streamlit launched today! Check out our launch post !!

Installation

pip install streamlit
streamlit hello

Example

Streamlit lets you build interactive apps ridiculously easily:

import streamlit as st

x = st.slider('Select a value')
st.write(x, 'squared is', x * x)

6jaI3e3.png!web

A Bigger Example

Despite its simplicity Streamlit lets you build incredibly rich and powerful tools. This demo project lets you browse the entire Udacity self-driving-car dataset and run inference in real time using the YOLO object detection net .

u632aun.gif

The complete demo is implemented in less than 300 lines of Python. In fact, the app contains only 23 Streamlit calls which illustrates all the major building blocks of Streamlit. You can try it right now with:

pip install --upgrade streamlit opencv-python
streamlit run https://raw.githubusercontent.com/streamlit/demo-self-driving/master/app.py

More Information

Streamlit for Teams

Streamlit for Teams is our enterprise edition, with single-click deploy, authentication, web editing, versioning, and more. Please contact us if you would like to learn more.

License

Streamlit is completely free and open source and licensed under the Apache 2.0 license.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK