Spaces:
Running
Running
require name and email
Browse files- .idea/other.xml +6 -0
- app.py +2 -2
.idea/other.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="PySciProjectComponent">
|
| 4 |
+
<option name="PY_MATPLOTLIB_IN_TOOLWINDOW" value="false" />
|
| 5 |
+
</component>
|
| 6 |
+
</project>
|
app.py
CHANGED
|
@@ -19,7 +19,7 @@ st.write("Full assignment submission instructions are here:\n"
|
|
| 19 |
uploaded_file = st.file_uploader("Choose a file")
|
| 20 |
if uploaded_file is not None:
|
| 21 |
name = st.text_input('Please write your full name.')
|
| 22 |
-
email = st.text_input("...and your email address.")
|
| 23 |
projections = pd.read_csv(uploaded_file)
|
| 24 |
st.write("The first five rows of the received file are:")
|
| 25 |
st.write(projections.iloc[0:5, :])
|
|
@@ -29,7 +29,7 @@ if uploaded_file is not None:
|
|
| 29 |
st.write(f"You were this close to MARCEL by MAE:\n{marcel_score}")
|
| 30 |
st.write(f"MARCEL had a median absolute error of {MARCEL_ERROR}")
|
| 31 |
st.write(f"Your own projections had a mean absolute error of {better_score}")
|
| 32 |
-
if better_score < MARCEL_ERROR:
|
| 33 |
st.write("Congratulations! You beat MARCEL.")
|
| 34 |
essay = st.text_area("Write a short essay explaining how. Paste it in here and press ctrl+enter.")
|
| 35 |
if essay:
|
|
|
|
| 19 |
uploaded_file = st.file_uploader("Choose a file")
|
| 20 |
if uploaded_file is not None:
|
| 21 |
name = st.text_input('Please write your full name.')
|
| 22 |
+
email = st.text_input("...and your email address. Both are *required* to evaluate your submission.")
|
| 23 |
projections = pd.read_csv(uploaded_file)
|
| 24 |
st.write("The first five rows of the received file are:")
|
| 25 |
st.write(projections.iloc[0:5, :])
|
|
|
|
| 29 |
st.write(f"You were this close to MARCEL by MAE:\n{marcel_score}")
|
| 30 |
st.write(f"MARCEL had a median absolute error of {MARCEL_ERROR}")
|
| 31 |
st.write(f"Your own projections had a mean absolute error of {better_score}")
|
| 32 |
+
if (better_score < MARCEL_ERROR) and name and email:
|
| 33 |
st.write("Congratulations! You beat MARCEL.")
|
| 34 |
essay = st.text_area("Write a short essay explaining how. Paste it in here and press ctrl+enter.")
|
| 35 |
if essay:
|