Spaces:
Running
Running
meghanaraok
commited on
Commit
•
4fc0926
1
Parent(s):
013118e
Update app.py
Browse files
app.py
CHANGED
@@ -166,7 +166,10 @@ def predict_icd(text_input, model_name, label_count):
|
|
166 |
label_dict = label_dict_df.set_index('icd9_code')['long_title'].to_dict()
|
167 |
predicted_labels_float = [float(label) for label in predicted_labels]
|
168 |
predicted_labels_with_titles = [(label, label_dict.get(str(label), "Not Found")) for label in predicted_labels_float]
|
169 |
-
print("
|
|
|
|
|
|
|
170 |
|
171 |
|
172 |
html_output ="<h2>ICD Codes</h2>"
|
|
|
166 |
label_dict = label_dict_df.set_index('icd9_code')['long_title'].to_dict()
|
167 |
predicted_labels_float = [float(label) for label in predicted_labels]
|
168 |
predicted_labels_with_titles = [(label, label_dict.get(str(label), "Not Found")) for label in predicted_labels_float]
|
169 |
+
print("Types of keys in label_probabilities:")
|
170 |
+
for key in label_probabilities.keys():
|
171 |
+
print(type(key))
|
172 |
+
# print("Keys in label_probabilities:", label_probabilities.keys())
|
173 |
|
174 |
|
175 |
html_output ="<h2>ICD Codes</h2>"
|