Skip to content

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.

Notifications You must be signed in to change notification settings

shahdivax/Character-chat-bot-for-Telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

Character Chat Bot for Telegram

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/

Branch Information

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.

Getting Started

To access the code and set up the chat bot, make sure to use the master branch of this repository:

  1. Clone the master branch of this repository:
git clone https://github.com/shahdivax/Character-chat-bot-for-Telegram.git --branch master
  1. Change into the project directory:
cd Character-chat-bot-for-Telegram
  1. Install the required dependencies:
pip install -r requirements.txt
  1. 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.

  1. 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.

  1. Run bot.py to run the bot locally for one character at a time, or run telegram_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

  1. Access the Telegram bot on t.me/DJS_Movie_Characters_Bot after running TelegramBotRunner_of_Tonystark.py.

Features

  • 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

Contributing

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!

Model

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.

Acknowledgements

  • 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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published