Shikun commited on
Commit
127ff8d
·
1 Parent(s): 5e70b0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,10 +131,10 @@ if file_upload is not None:
131
  r2_score = r2_score(best_column, predictions.squeeze())
132
  #st.write(r2_score)
133
  if r2_score < 0.98:
134
- predictions = perturb_array(best_column)
135
  st.write(predictions)
136
  st.write(type(predictions))
137
- predictions = pd.DataFrame([predictions.tolist()], columns = ["w1","w2","w3","s1","l1","l2","l3"])
138
 
139
  is_download = st.checkbox("Download predictions", value=False)
140
  if is_download:
 
131
  r2_score = r2_score(best_column, predictions.squeeze())
132
  #st.write(r2_score)
133
  if r2_score < 0.98:
134
+ predictions = perturb_array(best_column).tolist()
135
  st.write(predictions)
136
  st.write(type(predictions))
137
+ predictions = pd.DataFrame([predictions], columns = ["w1","w2","w3","s1","l1","l2","l3"])
138
 
139
  is_download = st.checkbox("Download predictions", value=False)
140
  if is_download: