To run on your localhost Prerequesites: have Python installed to your computer, and set to your environemnt variables: https://www.tutorialspoint.com/How-to-set-python-environment-variable-PYTHONPATH-on-Windows
-
Download the repo to your computer
-
Install conda environment on your computer: https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html
-
Install prerequisite libraries from requirements.txt
3.1. In your terminal go to your project folder and type: 'pip install -r requirements.txt'
-
Create a new conda environment called ml as follows in a terminal command line:
4.1 In your terminal go to your project folder and type: 'conda create -n ml python=3.10.0'
4.2 Secondly, we will login to the ml environment: 'conda activate ml'
-
Launching the web app. To launch the app, type the following into a terminal command line (p.s. also make sure that the hvacapp.py file is in the current working directory ; type 'ls' or 'dir' in your terminal to check):
5.1. 'streamlit run hvacapp.py'
In a few moments you will see the following message in the terminal prompt.
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://10.0.0.11:8501
P.S: If you run into a problem that says "missing module" error, make sure to 'pip install' said module on your local machine.
Directory
.
├── .streamlit
│ ├── config.toml
├── images
│ ├── BCIT-HVAC.png
│ ├── bcit.jpg
│ └── bcitbuilding.jpg
├── .gitignore
├── apiextract.py
├── home.py
├── hvacapp.py
├── modelling.py
├── multiapp.py
├── README.md
└── requirements.txt