Developed by students of the Simulator ML (Karpov.Courses)
Repository structure
deployment/
- docker application deployment filesdocs/
- project documentation folderexploration/
- data mining folderstatic/
- scripts to launch componentssrc/
- application source folderapp/
- telegram bot filesmetrics/
- files for evaluating the quality of modelsmodels/
- folder with training scripts and inferenceutils/
- folder with util functions and variables
test/
- application tests (pytest)
git clone https://github.com/uberkinder/Nometa-Bot.git
- Create a telegram bot and get a token through https://t.me/BotFather
Choose a launch option and continue with the steps
Local
-
install python version: 3.8
-
pip install -r requirements.txt
-
install PyTorch
-
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
-
Add a variable to your environment on ...
linux:
export BOT_TOKEN=<your_token>
windows (cmd):
setx BOT_TOKEN "<your_token>"
-
run
python static/start_bot.py
Docker
from the root of the repository run the commands
3) docker build -t nometa_bot -f deployment/Dockerfile .
4) docker run -e BOT_TOKEN=<your_token> -p 8080:8080 nometa_bot
After launching the bot, add it to the chat and allow it to read messages