Skip to content

Commit

Permalink
Added example input to StreamLit
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu Chi Man committed Oct 29, 2024
1 parent 1db702b commit 6b0a8e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lit.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ def display_results(model, data):
# Main
st.title('AutoPM3')

variant_name = st.text_input('Step 1. Enter the variant (HGVS notation)')
if st.button('Example', type='primary'):
st.session_state.variant_name = 'NM_004004.5:c.71G>A'
st.session_state.pmid = '15070423'

variant_name = st.text_input('Step 1. Enter the variant (HGVS notation)', key='variant_name')

# Get the URL of the XML from the user
paper_url = ''
pmid = st.text_input('Step 2. Enter the PMID of the paper')
pmid = st.text_input('Step 2. Enter the PMID of the paper', key='pmid')
if pmid:
try:
pmid = int(pmid)
Expand Down

0 comments on commit 6b0a8e5

Please sign in to comment.