A simple website featuring a chatbot for hypothetical clothing store.
The core of the bot is built using python 3.5.1 with keras library, so you should have python installed.
You should install the libraries written in recs.txt
Warning: If you have h5py library version 2.8.0 or higher, it may not load the weights correctly.
You may first create a virtual environment for the project:
Open a new cmd window and run:
cd path/to/project
python -m venv my_env \\ Create venv
my_env\Scripts\activate.bat \\ Activate venv
Before installing libraries, you should upgrade pip
to the latest version to avoid potential errors:
python -m pip install --upgrade pip
Then, install required libraries:
pip install โr recs.txt
Before training, change the data files paths to your data files path. The model was trained using google colab so the paths were set to google drive to a folder named Fashion.
After setting the paths correctly, run the file train.py
from python IDLE or from cmd by running the following:
python train.py -ep 100 -bs 64 -n 256
Note: Each of the command line arguments has a default value so you may remove it from the command if you want.
To run the website, right-click at server.py
and choose Edit with IDLE, then run the script F5
.
Or, you may run it from cmd by running the following command at the same project directory:
python server.py
- python - interpreted high-level programming language for general-purpose programming.
- keras - a high-level neural networks API.
I appreciate any effort to improve the project and would be grateful for any small note that makes the project better and more professional.
- Weights file needs update
- Additional commenting needed
- Use Reactjs for frontend
- Use Django or Symfony for backend
- Enhancing the keras model