Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
cleanup
Browse files
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 |
-
|
|
|
|
| 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']]):
|