Streamlit is a great library, especially for creating full, standalone dashboards. Here's where I think Gradio's focus is different:
- Our UI components are optimized for machine learning models. For example, we make it super easy for you to put in a drag-and-drop image upload for your image classification model, and we'll handle the preprocessing to convert the input image to a numpy array of specified shape & the postprocessing to convert the confidences to nice graphical labels. We're trying to eliminate boilerplate preprocessing & postprocessing as much as possible. Just specify the UI components that make sense for your model in 1 line of code, and then launch() to create the interface!
- We are designing our UI components so that you can get more insight into how your model is performing. For example, here we obscure / crop different parts of an image to explore what in the image might be causing the model to predict a cheetah: https://i.imgur.com/t0Inliy.mp4 We are planning on releasing a lot more features specifically focused on model testing & validation, and would love to hear from you if that sounds useful
- Gradio integrates seamlessly with jupyter / colab notebooks, so you can use your existing workflow (I don't believe that's true for streamlit)
- Our UI components are optimized for machine learning models. For example, we make it super easy for you to put in a drag-and-drop image upload for your image classification model, and we'll handle the preprocessing to convert the input image to a numpy array of specified shape & the postprocessing to convert the confidences to nice graphical labels. We're trying to eliminate boilerplate preprocessing & postprocessing as much as possible. Just specify the UI components that make sense for your model in 1 line of code, and then launch() to create the interface!
- We are designing our UI components so that you can get more insight into how your model is performing. For example, here we obscure / crop different parts of an image to explore what in the image might be causing the model to predict a cheetah: https://i.imgur.com/t0Inliy.mp4 We are planning on releasing a lot more features specifically focused on model testing & validation, and would love to hear from you if that sounds useful
- Gradio integrates seamlessly with jupyter / colab notebooks, so you can use your existing workflow (I don't believe that's true for streamlit)