jannisborn commited on
Commit
66f9f84
·
unverified ·
1 Parent(s): bc35b13
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -88,10 +88,14 @@ def run_inference(
88
  )
89
  df["site"] = df["site"].apply(lambda x: site_mapper.get(x, x))
90
  df["cell_line"] = df["cell_line"].apply(lambda x: x.split("_")[0])
91
- if not confidence:
92
  df.drop(
93
  ["aleatoric_confidence", "epistemic_confidence"], axis=1, inplace=True
94
  )
 
 
 
 
95
  # else:
96
  # df = pd.read_csv(omic_path, low_memory=False)
97
 
 
88
  )
89
  df["site"] = df["site"].apply(lambda x: site_mapper.get(x, x))
90
  df["cell_line"] = df["cell_line"].apply(lambda x: x.split("_")[0])
91
+ if (not confidence) and "aleatoric_confidence" in df.columns:
92
  df.drop(
93
  ["aleatoric_confidence", "epistemic_confidence"], axis=1, inplace=True
94
  )
95
+ if (not confidence) and "aleatoric_confidence" in predicted_df.columns:
96
+ predicted_df.drop(
97
+ ["aleatoric_confidence", "epistemic_confidence"], axis=1, inplace=True
98
+ )
99
  # else:
100
  # df = pd.read_csv(omic_path, low_memory=False)
101