From the course: Python for AI Projects: From Data Exploration to Impact

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Deploy AI Web Apps using Streamlit

Deploy AI Web Apps using Streamlit

- [Instructor] If you haven't tried Streamlit yet, now's your chance. It's the go-to library for creating lightweight, interactive web apps with minimal Python code. Perfect for quickly prototyping your AI and data ideas. Since Streamlit runs apps on a local port, we'll need to make a few tweaks to get everything working smoothly in our cloud-based Colab environment. We'll use a tool called ngrok to securely create a tunnel from our Colab instance to a live URL that you can open directly in your browser. To use ngrok, you'll need to sign up for an account and generate an authtoken, which we'll add to this notebook. In the ngrok dashboard, you'll find your authtoken. Copy it to a notepad as we'll paste it into the notebook in a later step. We'll also create an OpenRouter account, a platform that gives us access to many popular AI models in one place. We'll use their free tier model access for our apps. Next, we'll create an…

Contents