From 6b0a8e5afd9eed4fba6e91aa54be59bd5a24d58c Mon Sep 17 00:00:00 2001 From: Liu Chi Man Date: Wed, 30 Oct 2024 03:37:54 +0800 Subject: [PATCH] Added example input to StreamLit --- lit.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lit.py b/lit.py index 2d3b014..e55de48 100644 --- a/lit.py +++ b/lit.py @@ -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)