From the course: Advanced Python Projects: Build AI Applications
Unlock the full course today
Join today to access over 25,200 courses taught by industry experts.
How to run the front end of the chatbot - Python Tutorial
From the course: Advanced Python Projects: Build AI Applications
How to run the front end of the chatbot
- [Instructor] I hope you're excited to run the frontend code to see it in action. So before we run the frontend code, make sure that the backend code is also running. Once the backend is up and running, create a new bash and type cd Begin/. Begin is our folder. Once that's done, type streamlit run and paste the name of this frontend file and let it run. There we go. Once you finish running this, go to the Port tab, and now make sure that you have 8501 as one of your ports because that is the port that our frontend is on, as you see over here. If you don't see that in the Port tab, go down and add port. I've already added this. So here we see under visibility that both of these ports are private. Let's make them public. 8000 is the port that contains the backend. 8501 is the one that contains the frontend. So click on the globe button next to the 8501 port, which should open our application in a new tab.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Introduction to API communication with Python3m 51s
-
(Locked)
File uploads and advanced API interactions1m 41s
-
(Locked)
Streamlit app basics and file handling2m 29s
-
(Locked)
Uploading files to API endpoints with Streamlit1m 21s
-
(Locked)
Building a chat interface with Streamlit2m 4s
-
(Locked)
How to run the front end of the chatbot3m 12s
-
(Locked)
Challenge: Create a front-end UI for file upload1m 42s
-
(Locked)
Solution: Create a front-end UI for file upload7m 42s
-
(Locked)
-