Updating Data processor/ watering predictor

This commit is contained in:
Max 2021-01-05 14:33:59 +00:00
parent a6d4b1192c
commit ce2f26bca8
4 changed files with 4 additions and 7 deletions

View File

@ -1,7 +1,5 @@
FROM python:3.8
FROM pa_py_ml_fb:latest
WORKDIR /code
COPY . .
RUN pip install -r requirements.txt
EXPOSE 80
EXPOSE 443
CMD "/code/data_processor.py"
EXPOSE 3535
CMD "/code/water_predictor.py"

View File

@ -18,3 +18,4 @@ RUN pip install -U six wheel mock
RUN wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.4.0/tensorflow-2.4.0-cp37-none-linux_armv7l.whl
RUN pip uninstall tensorflow
RUN pip install tensorflow-2.4.0-cp37-none-linux_armv7l.whl
RUN pip -v install pandas

View File

@ -1,11 +1,9 @@
#!/usr/local/bin/python
import logging
import time
import firebase_admin
import numpy as np
import pandas as pd
import tensorflow as tf
from firebase_admin import credentials, firestore
from Flask import Flask
from tensorflow import keras