- Set up virtualenv
python3.10 -m venv venv
source venv/bin/activate- Install dependencies
pip install -r requirements.txt- Download sticker preparation model checkpoint
mkdir -p models
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pthFirst 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.pyFirst launch will take some time because other models will be downloaded if missing