Style transfer application using flask and TF Hub
- Clone this repository
git clone https://github.com/jjerry-k/stylet_transfer_web.git
- Create and Activate virtual environment
python3 -m venv env
source env/bin/activate
- Install dependencies
pip install --upgrade pip
pip install -r requirements
- Install Tensorflow dependencies
- On Windows & Linux & MacOS
pip install tensorflow tflite_runtime
# Download each .whl
pip install {tensorflow wheel file}
pip install {tflite_runtime wheel file}
- Run flask
# Production
gunicorn -b 0.0.0.0:{Port Number} app:app
# Deploy
gunicorn -b 0.0.0.0:{Port Number} app:app -D