astirn commited on
Commit
610b0ca
·
1 Parent(s): 44f0ad0
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,8 @@ st.session_state['userInput'] = st.text_input('Enter a target transcript (or sub
16
 
17
  # input is too short
18
  if len(st.session_state['userInput']) < GUIDE_LEN:
19
- st.write('Transcript length ({:d}) must be >= 23 bases.'.format(len(st.session_state['userInput'])))
 
20
 
21
  # valid input
22
  elif all([True if nt.upper() in NUCLEOTIDE_TOKENS.keys() else False for nt in st.session_state['userInput']]):
 
16
 
17
  # input is too short
18
  if len(st.session_state['userInput']) < GUIDE_LEN:
19
+ transcript_len = len(st.session_state['userInput'])
20
+ st.write('Transcript length ({:d}) must be at least {:d} bases.'.format(transcript_len, GUIDE_LEN))
21
 
22
  # valid input
23
  elif all([True if nt.upper() in NUCLEOTIDE_TOKENS.keys() else False for nt in st.session_state['userInput']]):