Update app.py
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def main(myargs):
|
|
133 |
prediction_label = st.session_state.hg_df["Prediction"].values[indices]
|
134 |
prediction_worst_label = []
|
135 |
for pred in prediction_label:
|
136 |
-
preds = pred.split("
|
137 |
if len(preds) ==1:
|
138 |
prediction_worst_label.extend(preds)
|
139 |
else:
|
@@ -461,11 +461,11 @@ def main(myargs):
|
|
461 |
all_p.append(label)
|
462 |
prob_all.append(round(v["probability"], 2))
|
463 |
|
464 |
-
higher_order_pred.append("
|
465 |
-
all_labels_pred.append("
|
466 |
|
467 |
-
higher_order_prob.append("
|
468 |
-
all_labels_prob.append("
|
469 |
|
470 |
predictions_refact = copy.deepcopy(predictions)
|
471 |
|
|
|
133 |
prediction_label = st.session_state.hg_df["Prediction"].values[indices]
|
134 |
prediction_worst_label = []
|
135 |
for pred in prediction_label:
|
136 |
+
preds = pred.split(" | ")
|
137 |
if len(preds) ==1:
|
138 |
prediction_worst_label.extend(preds)
|
139 |
else:
|
|
|
461 |
all_p.append(label)
|
462 |
prob_all.append(round(v["probability"], 2))
|
463 |
|
464 |
+
higher_order_pred.append(" | ".join(x for x in higher))
|
465 |
+
all_labels_pred.append(" | ".join(x for x in all_p))
|
466 |
|
467 |
+
higher_order_prob.append(" | ".join(str(x) for x in prob_higher))
|
468 |
+
all_labels_prob.append(" | ".join(str(x) for x in prob_all))
|
469 |
|
470 |
predictions_refact = copy.deepcopy(predictions)
|
471 |
|