hitz02 commited on
Commit
d3d6d52
1 Parent(s): 80d04b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)))