CoolFace
Apppublic

con2mms/cifar10-deploy-final

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
Dockerfile14 linesDownload Raw Back to root
1FROM tensorflow/serving:latest
2
3RUN apt-get update && apt-get install -y python3 python3-pip
4RUN pip3 install flask numpy requests Pillow tensorflow
5
6# We will put your best model here
7COPY cifar_model /models/cifar_model
8ENV MODEL_NAME=cifar_model
9
10COPY app.py /app/app.py
11WORKDIR /app
12
13# Run both services
14CMD tensorflow_model_server --port=8500 --rest_api_port=8501 --model_name=cifar_model --model_base_path=/models/cifar_model & python3 app.py