Skip to content

Commit

Permalink
move app to fix package error in streamlit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcook1186 committed Jan 9, 2024
1 parent 8082ce8 commit d15c0c1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ENV DEBIAN_FRONTEND=noninteractive


COPY .devcontainer/environment.yml /tmp/conda-tmp/
RUN /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml
RUN /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"gua.rainbow-brackets",
"ms-python.vscode-pylance"
]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Instructions for using the app are provided below.

To run the deployed version of the app simply direct your browser to [bit.ly/biosnicar](bit.ly/biosnicar). Alternatively, run the app locally by following these instructions:

The code for the Streamlit app is in `~/app/streamlit/app.py`.
The code for the Streamlit app is in `~/app.py`.

In a terminal, navigate to the top-level BioSNICAR directory and run:

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/streamlit/app.py → app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def run_snicar(
dict: Dict with result for display.
"""

input_file = "app/streamlit/inputs.yaml"
input_file = "app_inputs.yaml"

if layer == "grains":
layer = 0
Expand Down
2 changes: 1 addition & 1 deletion start_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

echo "---------------------"
echo "Go to http://localhost:8501"
python -m streamlit run app/streamlit/app.py
python -m streamlit run app.py

0 comments on commit d15c0c1

Please sign in to comment.