Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram bot

Prepare environment

  1. Set up virtualenv
python3.10 -m venv venv
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Download sticker preparation model checkpoint
mkdir -p models
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth

Start the bot

First of all, you need to get bot token from @BotFather telegram-bot.

Once the token is aquired, set BOT_TOKEN enviroment variable with provided token.

Assuming you set the token in .env file, run the following commands

source .env
python app.py

First launch will take some time because other models will be downloaded if missing

About

Telegram bot for master degree project. Used for simple image processing, sticker preparation, audio transcription and image generation. These features use NN models.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages