A simple flask app to serve the bot.
- Python 3.6+
- Flask
pip3 install -r requirements.txt- Create a model and save it as
example.model(see here). - Run the flask app:
python3 flask_app.py example.model- Open http://localhost:5050 in your browser.
- To chat with bot1, go to http://localhost:5050/?p=0.
- To chat with bot2, go to http://localhost:5050/?p=1.
static/index.html: HTML for the web interface.static/script.js: javascript code.static/style.css: CSS.
- You can add stickers to the
static/stickersfolder to use them randomly in the chat. Change theMAX_STICKERvariable inflask_app.pyaccordingly.
- themes
- add option to use stickers
Soham Korade