Skip to content

otherman16/BasilAI

 
 

Repository files navigation

Telegram Bot BasilAI

Install

  • prod environment

    make install-prod
  • dev environment

    make install-dev

Generate dataset

make dataset RAW_DATA=<path to telegram dialogs dump json> TARGET=<user_id> DATASET=<path to csv file to save generated dataset>

Train model

make train TRAIN_CONFIG=<path to config file>

Run telegram bot locally

make bot TOKEN=<telegram bot auth token>

Heroku hosting

Getting started with heroku

  • authenticate on heroku

    heroku login
  • add git heroku remote

    heroku git:remote -a basilai-bot

Pushing new version to heroku

  • push local master branch to heroku main branch

    git push heroku master:main

    you can push any local branch - just change master to branch name

  • heroku restarts application with new version automatically

Scaling heroku application

  • check heroku running apps

    heroku ps
  • scale heroku apps

    heroku ps:scale worker=1
  • stop heroku apps

    heroku ps:stop worker.1

Get logs

heroku logs -t

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.7%
  • Makefile 2.2%
  • Procfile 0.1%