meghanaraok commited on
Commit
afbda59
1 Parent(s): 8b7872d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -160,7 +160,7 @@ def predict_icd(text_input, model_name, label_count):
160
  label_probabilities = {label_map[i]: prob * 100 for i, prob in enumerate(probabilities[0]) if label_map[i] in predicted_labels}
161
  y_pred = np.array(predicted_labels)
162
  y_pred = "\n".join(y_pred)
163
- label_dict_df = pd.read_csv("data/mimic3/"+label_count+"/labels_dictionary_"+label_count+"_level_1.csv")
164
 
165
  label_dict = label_dict_df.set_index('icd9_code')['long_title'].to_dict()
166
  predicted_labels_with_titles = [(label, label_dict.get(str(label), "Not Found")) for label in predicted_labels]
 
160
  label_probabilities = {label_map[i]: prob * 100 for i, prob in enumerate(probabilities[0]) if label_map[i] in predicted_labels}
161
  y_pred = np.array(predicted_labels)
162
  y_pred = "\n".join(y_pred)
163
+ label_dict_df = pd.read_csv("data/mimic3/50/labels_dictionary_50_level_1.csv")
164
 
165
  label_dict = label_dict_df.set_index('icd9_code')['long_title'].to_dict()
166
  predicted_labels_with_titles = [(label, label_dict.get(str(label), "Not Found")) for label in predicted_labels]