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
|
||||
COPY . .
|
||||
RUN pip install -r requirements.txt
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
CMD "/code/data_processor.py"
|
||||
EXPOSE 3535
|
||||
CMD "/code/water_predictor.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 pip uninstall tensorflow
|
||||
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
|
||||
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
|
||||
Loading…
Reference in New Issue
Block a user