This is a simple chatbot application made using Flask and Microsoft DialoGPT. The application allows users to chat with the chatbot using natural language and receive human-like responses.
- Carry out conversations with users using natural language processing
- Use Microsoft DialoGPT to generate human-like responses
- Integrate DialoGPT with Flask to create a web application
- Use HTML, CSS, and JavaScript to create a visually appealing and interactive chat interface
- Use jQuery to handle HTTP requests to the backend server
The Chatbot is constructed using the Microsoft/DialoGPT-medium model. Link: https://huggingface.co/microsoft/DialoGPT-medium
- Clone the repository
- Set up a virtual environment by running
python -m venv env(on Windows) orpython3 -m venv env(on Linux and macOS) - Activate the virtual environment by running
env\Scripts\activate(on Windows) orsource env/bin/activate(on Linux and macOS) - Install the required packages by running
pip install -r requirements.txt - Note: The requirements will necessitate downloading large amounts of data for the model, so please be cautious about data usage on metered connections.
- Run the application by running
python app.py - Open a web browser and navigate to http://127.0.0.1:5000/
- Start chatting with the chatbot using natural language. You can start with a simple question like "Hello", "How are you?".
The system requires the following dependencies:
- flask
- transformers
- torch
This project is licensed under the MIT License. See the LICENSE file for more details.
For more details and tutorials, visit the website: DocsAllOver.
Follow us on:
and visit our website to know more about our tutorials and blogs.
