Smart Home Appliances: Chat with Your Fridge
Facebook app has to be set up according to the official documentation Facebook for Developers.
Heroku cloud server has to be set up according to the official documentation Getting Started on Heroku.
We provide app.js
script that can be run on Heroku server to work with Facebook server. On the client side, this script pushes user requests into AMQP queue.
This script reads AMQP data and executes the trained reasoning model:
CUDA_VISIBLE_DEVICES=0, python3 rpc_server.py --expName fridgr_FeatCls_EmbRandom_CfgArgs0 --gpus 0 --netLength 4 --restoreEpoch 25 --getPreds @configs/args_inference.txt
Don't forget to set up queue and Facebook chatbot variables in app.js
:
CLOUDAMQP_URL
PAGE_ACCESS_TOKEN
VERIFICATION_TOKEN