Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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:
|