Spaces:
Running
Running
Erva Ulusoy
commited on
Commit
·
77b1fab
1
Parent(s):
e359f1f
possible error in email input
Browse files
app.py
CHANGED
|
@@ -61,10 +61,11 @@ with st.sidebar:
|
|
| 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:
|
| 69 |
with domain_tab:
|
| 70 |
st.warning('Please enter your query and click "Find domains" to see domains in sequence.')
|
|
|
|
| 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 and '@' in st.session_state.email:
|
| 65 |
domains_submitted = True
|
| 66 |
+
st.session_state.disabled = True
|
| 67 |
else:
|
| 68 |
+
st.warning('Please enter your email and protein sequence first. If you have already entered your email and protein sequence, please check that your email is valid.')
|
| 69 |
else:
|
| 70 |
with domain_tab:
|
| 71 |
st.warning('Please enter your query and click "Find domains" to see domains in sequence.')
|