Shikun commited on
Commit
c09b353
·
1 Parent(s): 8e1c2f2

Update app.py

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