flask-chatterbot
flask-chatterbot copied to clipboard
@kunjmehta
@kunjmehta
One way to do this would be to:
- Store the URL/path of the image in the training data
- Check for these URLs/paths on the front-end and instead of displaying the answer as raw text, display it as an
<img src="URL/path" />tag- Relevant code: https://github.com/chamkank/flask-chatterbot/blob/master/templates/index.html#L20-L23
Originally posted by @chamkank in https://github.com/chamkank/flask-chatterbot/issues/23#issuecomment-473486995