Update app.py
Browse files
app.py
CHANGED
@@ -89,6 +89,6 @@ if st.button('Predict Answers'):
|
|
89 |
st.write(predicted_agg)
|
90 |
st.write(answer)
|
91 |
if predicted_agg == 'SUM':
|
92 |
-
st.markdown('**>** '+str(sum(answer.split(','))))
|
93 |
else:
|
94 |
-
st.markdown('**>** '+str(np.round(np.mean(answer.split(',')),2)))
|
|
|
89 |
st.write(predicted_agg)
|
90 |
st.write(answer)
|
91 |
if predicted_agg == 'SUM':
|
92 |
+
st.markdown('**>** '+str(sum(list(map(float,answer.split(','))))))
|
93 |
else:
|
94 |
+
st.markdown('**>** '+str(np.round(np.mean(list(map(float,answer.split(',')))),2)))
|