Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1057,9 +1057,7 @@ def submit_predict(predict_filepath, task, preset, target_family, opts, job_info
|
|
1057 |
|
1058 |
prediction_df = apply_advanced_opts(prediction_df, opts, df_training)
|
1059 |
|
1060 |
-
prediction_df.drop(
|
1061 |
-
[col for col in ['N', 'FP'] if col in prediction_df.columns], axis=1
|
1062 |
-
).to_csv(predictions_file, index=False, na_rep='')
|
1063 |
status = 'COMPLETED'
|
1064 |
|
1065 |
return {run_state: False}
|
|
|
1057 |
|
1058 |
prediction_df = apply_advanced_opts(prediction_df, opts, df_training)
|
1059 |
|
1060 |
+
prediction_df.drop(['N', 'FP'], axis=1, errors='ignore').to_csv(predictions_file, index=False, na_rep='')
|
|
|
|
|
1061 |
status = 'COMPLETED'
|
1062 |
|
1063 |
return {run_state: False}
|