Skip to content

Commit

Permalink
Added a new expander with info for loading an example model from the …
Browse files Browse the repository at this point in the history
…Aurora PK/PD github repo.:
  • Loading branch information
blakeaw committed Jul 24, 2024
1 parent d193336 commit 31c6e75
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pages/compartmental/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@
repo_name = st.text_input("Repository name:", placeholder='my-cool-repo')
repo_path = st.text_input("Path to model file:", placeholder='src/model.py')
to_load = st.button("Load")
with st.expander(":information_source: Sample Model"):
st.markdown('''
If you just want to test things out a bit you can load a sample two-compartment model from the Aurora PK/PD GitHub repo:
* Organization: Borealis-BioModeling
* Repository name: aurora-pkpd
* Path: example_model/twocomp_emax.py
''')
if to_load:
if repo_host == 'GitHub 🐙':
repo_url = f'https://raw.githubusercontent.com/{repo_user}/{repo_name}/main/{repo_path}'
Expand All @@ -103,7 +110,7 @@
if to_load:
st.write("Uploaded model:")
st.code(string_data, line_numbers=True)

st.divider()
st.markdown("### Or would you like to build a new custom PK/PD model?")
if st.button("Build new model"):
Expand Down

0 comments on commit 31c6e75

Please sign in to comment.