huggingface / knockknock

🚪✊Knock Knock: Get notified when your training ends with only two additional lines of code
MIT License
2.78k stars 234 forks source link

Be notified when running applications from command line #9

Closed ChristophAlt closed 5 years ago

ChristophAlt commented 5 years ago

I often run training via a command-line interface (e.g. AllenNLP), therefore I extended the decorators to directly wrap a command-line application. For example, wrapping a command and be notified via Telegram:

knockknock telegram \
    --token <your_api_token> \
    --chat-id <your_messaging_room_id> \
    sleep 10
VictorSanh commented 5 years ago

Looks good to me. Thanks @ChristophAlt for your contribution!