Telegram integrations for convolut framework
Project description
Convolut-Telegram
pip install convolut-telegram
What you get
Usage
Basic
# ...
from convolut import Runner
from convolut_telegram import TelegramLogger
# ...
(Runner(loaders=[train_loader, valid_loader], epochs=epochs)
# ...
.add(TelegramLogger(token="YOUR_BOT_TOKEN_HERE", chat_id="YOUR_CHAT_ID_HERE"))
.start()
)
Environment variables
- Telegram logger uses these envs for initialization
CONVOLUT_LOGGER_TELEGRAM_TOKEN=YOUR_BOT_TOKEN_HERE
CONVOLUT_LOGGER_TELEGRAM_CHAT_ID=YOUR_CHAT_ID_HERE
CONVOLUT_LOGGER_TELEGRAM_MODE=basic # default value
CONVOLUT_LOGGER_TELEGRAM_PROXY=https://api.telegram.org # default value
- Now you can use it that way:
# ...
from convolut import Runner
from convolut_telegram import TelegramLogger
# ...
(Runner(loaders=[train_loader, valid_loader], epochs=epochs)
# ...
.add(TelegramLogger())
.start()
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.