Updating Data processor/ watering predictor
This commit is contained in:
parent
a6d4b1192c
commit
ce2f26bca8
@ -1,7 +1,5 @@
|
|||||||
FROM python:3.8
|
FROM pa_py_ml_fb:latest
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pip install -r requirements.txt
|
EXPOSE 3535
|
||||||
EXPOSE 80
|
CMD "/code/water_predictor.py"
|
||||||
EXPOSE 443
|
|
||||||
CMD "/code/data_processor.py"
|
|
||||||
|
|||||||
@ -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 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 uninstall tensorflow
|
||||||
RUN pip install tensorflow-2.4.0-cp37-none-linux_armv7l.whl
|
RUN pip install tensorflow-2.4.0-cp37-none-linux_armv7l.whl
|
||||||
|
RUN pip -v install pandas
|
||||||
|
|||||||
2
data_processor/data_processor.py → data_processor/water_predictor.py
Normal file → Executable file
2
data_processor/data_processor.py → data_processor/water_predictor.py
Normal file → Executable file
@ -1,11 +1,9 @@
|
|||||||
#!/usr/local/bin/python
|
#!/usr/local/bin/python
|
||||||
import logging
|
import logging
|
||||||
import time
|
|
||||||
|
|
||||||
import firebase_admin
|
import firebase_admin
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import tensorflow as tf
|
|
||||||
from firebase_admin import credentials, firestore
|
from firebase_admin import credentials, firestore
|
||||||
from Flask import Flask
|
from Flask import Flask
|
||||||
from tensorflow import keras
|
from tensorflow import keras
|
||||||
Loading…
Reference in New Issue
Block a user