Spaces:
Sleeping
Sleeping
Erva Ulusoy
commited on
Commit
·
eac5d9d
1
Parent(s):
e1a890c
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,11 +59,10 @@ with st.sidebar:
|
|
| 59 |
st.session_state['email'] = st.text_input('Enter your email for InterProScan query: ')
|
| 60 |
|
| 61 |
# prevent user from clicking 'Find domains' button if email or sequence is empty
|
| 62 |
-
domains_submitted = False
|
| 63 |
if st.button('Find domains'):
|
| 64 |
if 'email' in st.session_state and 'sequence' in st.session_state:
|
| 65 |
domains_submitted = True
|
| 66 |
-
st.session_state.disabled = True
|
| 67 |
else:
|
| 68 |
st.warning('Please enter your email and protein sequence first.')
|
| 69 |
else:
|
|
|
|
| 59 |
st.session_state['email'] = st.text_input('Enter your email for InterProScan query: ')
|
| 60 |
|
| 61 |
# prevent user from clicking 'Find domains' button if email or sequence is empty
|
| 62 |
+
domains_submitted = False
|
| 63 |
if st.button('Find domains'):
|
| 64 |
if 'email' in st.session_state and 'sequence' in st.session_state:
|
| 65 |
domains_submitted = True
|
|
|
|
| 66 |
else:
|
| 67 |
st.warning('Please enter your email and protein sequence first.')
|
| 68 |
else:
|