This repository contains a chat bot designed for Telegram that can chat like famous movie characters such as Tony Stark (Iron Man) and Harry Potter. Engage in fun conversations with your favorite characters and see how they would respond to you.
Deployed on streamlit use here : https://shahdivax-character-chat-bot-for-telegram-app-5mli48.streamlit.app/
All the code for this project is available in the master
branch. This branch contains the latest updates and improvements to the chat bot. If you encounter any issues or would like to contribute, please submit a pull request or report an issue on the master
branch.
To access the code and set up the chat bot, make sure to use the master
branch of this repository:
- Clone the
master
branch of this repository:
git clone https://github.com/shahdivax/Character-chat-bot-for-Telegram.git --branch master
- Change into the project directory:
cd Character-chat-bot-for-Telegram
- Install the required dependencies:
pip install -r requirements.txt
- Run
dialog_extractor.py
to extract the dialogues from movie scripts:
python dialog_extractor.py
Note: above command is use to create tony_stark_dialogues.txt
file , if you want you can skip this step and use already existing file or else make sure that the new file you created looks like the existing one.
- Run
modelcreation.py
to create the chat bot model:
python modelcreation.py
Note: create models for both the characters and then move to step 6.
- Run
bot.py
to run the bot locally for one character at a time, or runtelegram_character-bot_runner.py
to start the bot on Telegram:
python bot.py
or
python telegram_character-bot_runner.py
Note : run above command only after you have created models of both the characters
- Access the Telegram bot on t.me/DJS_Movie_Characters_Bot after running
TelegramBotRunner_of_Tonystark.py
.
- Realistic conversations with your favorite movie characters
- Easy setup and deployment on Telegram
- Extendable to other movie characters by modifying the dataset
- Fun and engaging way to interact with friends and fans of the movies
Feel free to contribute to this project by submitting a pull request or reporting any issues you encounter. We appreciate your help in making this chat bot even better!
This chat bot is powered by the DialoGPT-medium model, which is a powerful language model created by Microsoft. We fine-tuned DialoGPT-medium specifically for our movie characters to ensure realistic and engaging conversations. By using this advanced model, our chat bot can generate more accurate and context-aware responses, making the conversations feel like you're really talking to Tony Stark or Harry Potter.
- Thanks to Microsoft for creating the DialoGPT-medium model
- Thanks to the creators of the movie scripts used in this project
- Special thanks to the developers of the libraries and tools used in building this chat bot