Final project for CPSC 490
Ensure python3
and pip3
are installed. Then do the following:
pip install virtualenv
virtualenv -p python3 venv; source venv/bin/activate
pip install -r requirements.txt
npm install
- Replace the line with
PATH
in~/.profile
with the following:PATH="$HOME/bin:$HOME/.local/bin:./node_modules/.bin:$PATH"
- Install and set up Tensorflow and its dependencies (on a computer with a GPU only)
In one terminal window, run ./setup.sh
or:
export FLASK_APP=capgen
export FLASK_DEBUG=1
source venv/bin/activate
webpack --watch &
python run.py
While the Flask server and Webpack are running, run lt --port=5000
in a separate terminal window (ensure localtunnel is installed first). Then, open the returned link in your web browser. Or just use port forwarding...