The objective of this project was to develop a chatbot catered to museums, which present the user with short and informative facts about historical events or figures, which could act as a substitute for tour guides during the COVID-19 pandemic.
Most of the project was constructed with Python, employing libraries like Flask, Venv, and NLTK, installed via NPM. Additionally, a JSON file was generated to house all intents (queries and corresponding responses) for the chatbot. However, this aspect faced limitations as the bot wasn't originally designed with machine learning capabilities. The front-end was developed using HTML5 with CSS3 ensuring the site's visual appeal.
- Python
- Flask
- Venv
- NLTK
- NPM
- HTML5
- CSS3
- JavaScript
Install Anaconda
Download from: https://www.anaconda.com
NOTE: Check out this video https://www.youtube.com/watch?v=gvVf-ouIla4 for complete installation instructions once Anaconda is installed on your desktop.
Intall Pytorch with Mac
conda install pytorch torchvision torchaudio -c pytorch
Intall Pytorch with Windows
conda install pytorch torchvision torchaudio cpuonly -c pytorch
Clone the Repository
Clone the repo, then create a virtual environment in either your desktop or downloads directory. Please follow instructions below:
git clone https://github.com/whdesigns/YourPastCompanion.git
cd YourPastCompanion
python3 -m venv venv
. venv/bin/activate
Install Dependencies
pip install Flask torch torchvision nltk
Install nltk package in Terminal
python
import nltk
nltk.download('punkt')
NOTE: If you are having trouble with this part. See this video https://www.youtube.com/watch?v=gvVf-ouIla4 for complete instructions on how to install and run the chatbot.
Run application Open VS Code, along with the cloned repo. Then run the app.py file.
app.py
Test the following questions with the chatbot to see if they work:
find mona lisa
where is the mona lisa
When was the Louvre built?
How big is the Louvre?
Louvre size?
covid rules
covid