Skip to content

Commit 50c78a3

Browse files
committed
.
1 parent bf1af30 commit 50c78a3

19 files changed

Lines changed: 41167 additions & 13202 deletions

.DS_Store

2 KB
Binary file not shown.

.idea/jupyter-settings.xml

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BIMReTA_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
# import model
1414
model = joblib.load('models/model_BIMReTA.pkl')
15+
# https://github.com/tanmoyie/Bayesian-Inference-Modeling/blob/clean-code/models/model_BIMReTA.pkl
1516

1617

1718
def rank_response_technologies(dispersion, E_ss, E_sl, E_sw, sufficient_mixing_energy,

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
FROM python:3.11
1+
FROM python:3.9-slim
22
COPY . /docker_app
33
WORKDIR /docker_app
44
RUN pip install -r requirement.txt
5+
RUN git clone https://github.com/tanmoyie/Bayesian-Inference-Modeling/tree/clean-code
56
# RUN mkdir ~/.streamlit
67
# RUN cp config.toml ~/config.toml
78
# RUN cp credentials.toml ~/credentials.toml
8-
EXPOSE $PORT
9-
ENTRYPOINT ["streamlit", "run"]
10-
CMD ["BIMReTA_app.py"]
9+
EXPOSE 8501
10+
ENTRYPOINT ["streamlit", "run", "BIMReTA_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
11+
# CMD ["BIMReTA_app.py"]
12+
13+
# Reference https://docs.streamlit.io/deploy/tutorials/docker#check-network-port-accessibility

data/.DS_Store

2 KB
Binary file not shown.

data/processed/cleaned_data.xlsx

814 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)