After you train a machine learning model, the BEST way to showcase it to the world is to make a demo for others to try your model!

Here is a quick thread🧵on two of the easiest ways to make a demo for your machine learning model:
Currently, Gradio is probably the fastest way to set up a machine learning demo ⚡

Just a couple lines of code allows you to use your inference code to make a beautiful demo that you can share with the world.

Learn more here → gradio.app
Using Gradio, I was able to quickly make this demo of my CycleGAN package (screenshot was taken using Gradio's built-in functionality!):

upit-cyclegan.herokuapp.com
An alternative and more general tool for making web apps for data science and machine learning scripts/tools is Streamlit.

Learn more here → streamlit.io
Our DALL·E mini demo (thanks to @pcuenq) was made with Streamlit:

huggingface.co/spaces/flax-co…
When is Gradio better than Streamlit?

Gradio is designed specifically for creating interfaces for machine learning models, and it takes ~5 min to get an app running!
It also includes useful features like interpretability, flagging unexpected model behavior, etc. It is therefore quite useful for providing more insight about your models
That said, Streamlit is a highly flexible and customizable python-based UI framework that also support third-party components that extend what's possible with Streamlit

Additionally, Streamlit includes useful features like caching that allows you to develop performant apps!
Therefore, in my opinion, I think it's worth learning how to use both tools to be able to create amazing demos for your machine learning projects.
If you found this thread useful, consider following me for more ML- and STEM-related content!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Tanishq Abraham is Fully Vaccinated 😷

Tanishq Abraham is Fully Vaccinated 😷 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @iScienceLuvr

20 Aug
The Tesla team discussed how they are using AI to crack Full Self Driving (FSD) at their Tesla AI Day event.

They introduced many cool things:
- HydraNets
- Dojo Processing Units
- Tesla bots
- So much more...

Here's a quick summary 🧵:
They introduced their single deep learning model architecture ("HydraNet") for feature extraction and transforming into a "vector space"
This includes multi-scale features from each of the 8 cameras, integrated with a transformer to attend to important features, incorporating kinematic features, processing in a spatiotemporal manner using a feature queue and spatial RNNs, all trained multi-task learning.
Read 11 tweets
8 Jul
OpenAI has released a 35-page paper on Codex (the model that powers GitHub Copilot)!
arxiv.org/abs/2107.03374
"We fine-tune GPT models containing up to 12B parameters on code to produce Codex."

They note that GitHub Copilot and the upcoming OpenAI API for the model is powered by descendants of the one in this paper.
They introduce a new dataset of Python programming problems in order to evaluate their models:
github.com/openai/human-e…
Read 5 tweets
7 Jul
Yes, this is definitely about television! 🤣🤣🤣
I find it very interesting that Twitter recommends relevant tweets to me, but the topic suggestion is completely off. It looks to me like the recommendation and topic selection algorithm are completely different.
While the tweet recommendation algo is more sophisticated that likely takes into consideration the semantic content of the tweet, the topic selection algo seems to be a simple algorithm that heavily weighs the presence of keywords.
Read 5 tweets
26 Jan 20
Saw few tweets on pigeon-based classification of breast cancer (@tunguz @hardmaru, @Dominic1King, & ML Reddit), which was published in 2015. I work with the legend himself @rml52! I thought for my 1st Twitter thread I'd go over the papers's main points & our current work! (1/11)
My PI often likes to say AI stands for avian intelligence. And indeed his paper shows pigeons can learn the difficult task of classifying the presence of breast cancer in histopathological images. (2/11)
The pigeons were placed in an apparatus and the 🔬 image was shown to the pigeons on a touchscreen. The pigeons were given food if they pressed the correct button on the screen. (This is opposed to regular pathologists who are not given free food when analyzing images!) (3/11) Image
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(