Spaces:
Sleeping
Sleeping
Sarat Chandra
commited on
Commit
·
c483939
1
Parent(s):
ee667f9
"Changing path"
Browse files- Dockerfile +4 -4
- app.py +1 -1
Dockerfile
CHANGED
@@ -8,10 +8,10 @@ WORKDIR /code
|
|
8 |
COPY app.py .
|
9 |
COPY ./templates/index.html /code/templates/index.html
|
10 |
COPY ./requirements.txt /code/requirements.txt
|
11 |
-
COPY model_AAPL.h5 .
|
12 |
-
COPY model_AMZN.h5 .
|
13 |
-
COPY model_TSLA.h5 .
|
14 |
-
COPY min_max.pickle .
|
15 |
|
16 |
# Install the required packages
|
17 |
RUN pip install --no-cache-dir -r /code/requirements.txt
|
|
|
8 |
COPY app.py .
|
9 |
COPY ./templates/index.html /code/templates/index.html
|
10 |
COPY ./requirements.txt /code/requirements.txt
|
11 |
+
COPY model_AAPL.h5 /code/model_AAPL.h5
|
12 |
+
COPY model_AMZN.h5 /code/model_AMZN.h5
|
13 |
+
COPY model_TSLA.h5 /code/model_TSLA.h5
|
14 |
+
COPY min_max.pickle /code/min_max.pickle
|
15 |
|
16 |
# Install the required packages
|
17 |
RUN pip install --no-cache-dir -r /code/requirements.txt
|
app.py
CHANGED
@@ -14,7 +14,7 @@ for ticker in tickers:
|
|
14 |
model = tf.keras.models.load_model(f'model_{ticker}.h5')
|
15 |
models[ticker] = model
|
16 |
|
17 |
-
with open('min_max.pickle', 'rb') as handle:
|
18 |
min_max_scaling = pickle.load(handle)
|
19 |
|
20 |
# Function to prepare the data for model input
|
|
|
14 |
model = tf.keras.models.load_model(f'model_{ticker}.h5')
|
15 |
models[ticker] = model
|
16 |
|
17 |
+
with open('/code/min_max.pickle', 'rb') as handle:
|
18 |
min_max_scaling = pickle.load(handle)
|
19 |
|
20 |
# Function to prepare the data for model input
|