Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 899 Bytes

File metadata and controls

50 lines (32 loc) · 899 Bytes

flask app

A simple flask app to serve the bot.

Requirements

  • Python 3.6+
  • Flask

Installation

pip3 install -r requirements.txt

Usage

  1. Create a model and save it as example.model (see here).
  2. Run the flask app:
python3 flask_app.py example.model
  1. Open http://localhost:5050 in your browser.

Advanced Usage

Files

  • static/index.html: HTML for the web interface.
  • static/script.js: javascript code.
  • static/style.css: CSS.

Notes

  • You can add stickers to the static/stickers folder to use them randomly in the chat. Change the MAX_STICKER variable in flask_app.py accordingly.

TODO

  • themes
  • add option to use stickers

License

MIT

Author

Soham Korade