Skip to content

Instantly share code, notes, and snippets.

@CleanPegasus
Last active September 27, 2020 17:25
Show Gist options
  • Save CleanPegasus/f137fb47f46e2bfc4db631916e70f30c to your computer and use it in GitHub Desktop.
Save CleanPegasus/f137fb47f46e2bfc4db631916e70f30c to your computer and use it in GitHub Desktop.
Installing TensorFlow Serving
# Run this code on the terminal
# Make sure you have curl installed. If not use "sudo apt install curl" to install it
echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | sudo tee /etc/apt/sources.list.d/tensorflow-serving.list && \
curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | sudo apt-key add -
sudo apt update
sudo apt-get install tensorflow-model-server
# Or alternatively you can use pip to install tensorflow serving
# If you don't have pip installed use "sudo apt install python3-pip" to install it in your linux environment
pip3 install tensorflow-serving-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment