In this tutorial, I'll show how to create an interactive web application using Streamlit to visualize various probability distributions with PyTorch. We'll walk through setting up the environment, exploring the GitHub repository, and running the app locally. Additionally, we'll cover deploying the app on Hugging Face Spaces for broader accessibility. By the end of this video, you'll have a functional app capable of visualizing different probability distributions, and you'll be equipped to customize and extend its features.
Github repo: https://github.com/nipunbatra/streaml...
Hugging face app: https://huggingface.co/spaces/Nipun/p...
Chapters
00:00:00 Introduction to Streamlit & Distributions App
00:00:12 App Overview: Distributions in PyTorch
00:01:49 Building the App with Streamlit: Step-by-Step
00:03:01 App Version 1-3: Basic Plotting, LaTeX, and Tables
00:08:38 App Version 4 & 5: Interactive Plots and Sidebar
00:13:37 App Version 6: Drop-down Menu for Distribution Selection
00:16:24 Multi-Page App: Home, Discrete, and Continuous Pages
00:19:31 Improving Code Extensibility: Config Folder
00:22:16 Smaller App: Continous.py and Discrete.py
00:26:06 Uploading Apps to Hugging Face
00:27:44 Instructions: Create a New Space
00:30:58 Adding Hugging Face as a Remote
00:32:20 Pushing Content to GitHub and Hugging Face
00:35:22 Final App is working