Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -75,7 +75,7 @@ image_pairs = [
|
|
| 75 |
results = {}
|
| 76 |
|
| 77 |
|
| 78 |
-
code_prov = st.text_input("
|
| 79 |
|
| 80 |
# ---- LOOP THROUGH PAIRS ----
|
| 81 |
for i, (imgA, imgB) in enumerate(image_pairs):
|
|
@@ -102,8 +102,8 @@ if st.button("Submit"):
|
|
| 102 |
if results[key] == "-":
|
| 103 |
cont += 1
|
| 104 |
|
| 105 |
-
if code_prov is
|
| 106 |
-
st.error("Please, insert your provided code at the beginning of this form. Then
|
| 107 |
elif cont != 0:
|
| 108 |
st.error("Sorry, you have not evaluated all pairs. Please, check again.")
|
| 109 |
else:
|
|
|
|
| 75 |
results = {}
|
| 76 |
|
| 77 |
|
| 78 |
+
code_prov = st.text_input("Type the provided code in the box below and press ENTER afterwards:")
|
| 79 |
|
| 80 |
# ---- LOOP THROUGH PAIRS ----
|
| 81 |
for i, (imgA, imgB) in enumerate(image_pairs):
|
|
|
|
| 102 |
if results[key] == "-":
|
| 103 |
cont += 1
|
| 104 |
|
| 105 |
+
if code_prov is "":
|
| 106 |
+
st.error("Please, insert your provided code at the beginning of this form. Then, try submitting again.")
|
| 107 |
elif cont != 0:
|
| 108 |
st.error("Sorry, you have not evaluated all pairs. Please, check again.")
|
| 109 |
else:
|