Skip to content

Commit 108c24d

Browse files
authored
Merge branch 'develop' into ahil-elastic
2 parents d65eb20 + 6eda172 commit 108c24d

25 files changed

+360
-76
lines changed

.github/workflows/pythonapp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
python -m pytest
4444
- name: Run App
4545
run: |
46-
PARAMETERS=./defaults/cypress.cfg streamlit run st_app.py &
46+
PARAMETERS=./defaults/cypress.cfg ASSETS=./defaults/assets streamlit run st_app.py &
4747
- name: Cypress
4848
uses: cypress-io/github-action@v1
4949
with:

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM python:3.7.7-slim-buster
2+
ENV ASSETS=./defaults/assets/
23
ENV PARAMETERS=./defaults/webapp.cfg
4+
ENV PORT=8000
35
WORKDIR /app
46
COPY README.md .
57
COPY setup.cfg .
@@ -11,5 +13,4 @@ COPY src src
1113
COPY st_app.py st_app.py
1214
RUN pip install -q .
1315

14-
CMD ["streamlit", "run", "st_app.py"]
15-
16+
CMD STREAMLIT_SERVER_PORT=$PORT streamlit run st_app.py

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: PARAMETERS=defaults/webapp.cfg STREAMLIT_SERVER_PORT=$PORT streamlit run st_app.py
1+
web: PARAMETERS=./defaults/webapp.cfg ASSETS=./defaults/assets STREAMLIT_SERVER_PORT=$PORT streamlit run st_app.py
Binary file not shown.

defaults/assets/PPE_Screenshot.jpg

253 KB
Loading
Loading
1.01 MB
Loading

docs/contributing/app-dev.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ pip install streamlit
4646
## Run the Streamlit Web App
4747

4848
```bash
49+
ASSETS=./defaults/assets \
4950
PARAMETERS=-./defaults/webapp.cfg streamlit run st_app.py
5051
```
5152

5253
## Run the Command Line Interface
5354

5455
```bash
56+
ASSETS=./defaults/assets \
5557
PARAMETERS=./defaults/cli.cfg penn_chime
5658
```
5759

@@ -66,6 +68,7 @@ penn_chime --help
6668
If you want a different set of default parameters, you may use your own configuration file.
6769

6870
```bash
71+
ASSETS=./defaults/assets \
6972
PARAMETERS=./defaults/yours.cfg streamlit run st_app.py
7073
```
7174

@@ -77,7 +80,19 @@ Be sure to include `--mitigation-date` in the file if social distancing was impl
7780
If you need to run the application on a different port than the default (8000), you can set an environment variable.
7881

7982
```bash
80-
STREAMLIT_SERVER_PORT=1234 PARAMETERS=./defaults/webapp.cfg streamlit run st_app.py
83+
ASSETS=./defaults/assets \
84+
STREAMLIT_SERVER_PORT=1234 \
85+
PARAMETERS=./defaults/webapp.cfg streamlit run st_app.py
86+
```
87+
88+
### Choosing a Different Language
89+
90+
If you want to run the application in another language, do the following. You can select Japanese as the language other than English.
91+
92+
```bash
93+
ASSETS=./defaults/assets \
94+
LANG=ja \
95+
PARAMETERS=./defaults/webapp.cfg streamlit run st_app.py
8196
```
8297

8398
## Project Layout
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Contributing: Operations Support
22

3-
*Coming soon*
3+
- This repo is associated with Penn Medicine's Chime1.0 model, which uses a Streamlit app that is built on an SIR model
4+
- Contributors are encouraged to consider supporting Penn Medicine's Chime2.0 model, which still uses a Streamlit app, but leverages an enhanced Bayesian SEIR model.

heroku.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
build:
22
docker:
3-
web: Dockerfile.dash
3+
web: Dockerfile
44
config:
5-
PORT: ${PORT}
5+
PORT: ${PORT}

0 commit comments

Comments
 (0)