Erva Ulusoy commited on
Commit
657176c
·
1 Parent(s): 4962d7b

update 'use example sequence' button position

Browse files
Files changed (1) hide show
  1. Domain2GO.py +1 -1
Domain2GO.py CHANGED
@@ -26,6 +26,7 @@ with st.sidebar:
26
 
27
  input_type = st.radio('Select input type', ['Enter sequence', 'Upload FASTA file'])
28
  if input_type == 'Enter sequence':
 
29
  if st.session_state.example_seq_button:
30
  st.session_state['sequence'] = st.text_area('Enter protein sequence in FASTA format.',
31
  value='>sp|O18783|PLMN_NOTEU\n'
@@ -33,7 +34,6 @@ with st.sidebar:
33
  else:
34
  st.session_state['sequence'] = st.text_area('Enter protein sequence in FASTA format.')
35
  st.session_state['name'] = st.session_state['sequence'].split('\n')[0].strip('>')
36
- st.button('Use example sequence', on_click=click_button)
37
  else:
38
  protein_input = st.file_uploader('Choose file')
39
  if protein_input:
 
26
 
27
  input_type = st.radio('Select input type', ['Enter sequence', 'Upload FASTA file'])
28
  if input_type == 'Enter sequence':
29
+ st.button('Use example sequence', on_click=click_button)
30
  if st.session_state.example_seq_button:
31
  st.session_state['sequence'] = st.text_area('Enter protein sequence in FASTA format.',
32
  value='>sp|O18783|PLMN_NOTEU\n'
 
34
  else:
35
  st.session_state['sequence'] = st.text_area('Enter protein sequence in FASTA format.')
36
  st.session_state['name'] = st.session_state['sequence'].split('\n')[0].strip('>')
 
37
  else:
38
  protein_input = st.file_uploader('Choose file')
39
  if protein_input: