For Executing Streamlit Application Below are step should be perform in vs code
Ensure all the required packages are installed in the system
pip install -r requirements.txt
Save this below packages in notepad and run above command to install in one go
keras==3.8.0
numpy==2.2.3
streamlit==1.42.2
tensorflow==2.18.0
tensorflow_intel==2.18.0
streamlit==1.42.2
matplotlib==3.10.0
To configure VS Code to debug a Python app and run it in the global terminal,
follow these steps:
1. Open VS Code:
Launch Visual Studio Code and open the folder where your project is stored
(C:\Users\Admin\Desktop\Python\Image_classification (1)) -- is the my system path in
your case it different where you store.
2. Install Python Extension:
If you haven't already, make sure you have the Python extension installed in VS Code.
If not, install it from the Extensions marketplace:
• Open the Extensions sidebar (Ctrl + Shift + X).
• Search for "Python" and click Install.
3. Configure the Python Interpreter:
To make sure VS Code uses the correct Python interpreter (such as the one inside your virtual
environment):
• Press Ctrl + Shift + P to open the Command Palette.
• Type Python: Select Interpreter.
• Choose the appropriate Python interpreter for your project (e.g., .venv or the global
Python installation).
• If using a virtual environment, ensure you select that interpreter to venv or select
global. (I don’t want to install packages again in the virtual environment so im using
global terminal)
Once you run that command the app execution begins
Automatically Browser opens up with web page if not
http://localhost:8501/
Copy & Paste this above URL in Browser
our Application by default uses port 8501