Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Building a Chat App with Ollama-py and Streamlit in Python

Decoder via YouTube

Overview

Learn how to build a chat application using Python, Ollama-py, and Streamlit in this 22-minute tutorial. Explore the Ollama Python library's key methods, including list(), show(), and chat(). Set up a Python environment and dive into Streamlit for creating the user interface. Follow along as the instructor guides you through constructing the chat app step-by-step, covering user input, message history, Ollama responses, model selection, and streaming responses. Gain insights into Python generators and their application in the project. By the end, you'll have created a functional LLM chat app with a user-friendly interface.

Syllabus

- Intro
- Why not use the CLI?
- Looking at the ollama-py library
- Setting up Python environment
- Reviewing Ollama functions
- list
- show
- chat
- Looking at Streamlit
- Start writing our app
- App: user input
- App: message history
- App: adding ollama response
- App: chooing a model
- Introducing generators
- App: streaming responses
- App: review
- Where to find the code
- Thank you for 2k

Taught by

Decoder

Reviews

Start your review of Building a Chat App with Ollama-py and Streamlit in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.