There are 3 important files within the repo:
- chatbot_train.ipynb - creates, trains and saves chatbot model
- chatbot_load.ipynb - loads chatbot model and activates so user can make inputs (this will be the code called by the DolFin website)
- intents.json - contains the desired input and output sentences for the chatbot
- Use a Python code editor (Google Colab or Jupyter Notebook) and ensure it has access to the location where intents.json is stored.
- Run all cells in chatbot_train.ipynb.
- Run all cells in chatbot_load.ipynb.
- Input desired sentence in final cell of chatbot_load.ipynb.
- When finished, stop cell running to stop the chatbot.
- Clone the repo and make your code changes.
- Push your code to a new branch of the repo using:
- git checkout -b feature_branch_name
- git add .
- git commit -m “some message about what you have done”
- git push -u origin feature_branch_name
- Create a pull request to merge your branch to master branch
https://www.geeksforgeeks.org/deploy-a-chatbot-using-tensorflow-in-python/
The Zen of Python: https://peps.python.org/pep-0020/