Spaces:
Running
Running
kovacsvi
commited on
Commit
·
d6c2bce
1
Parent(s):
5f6b004
typo
Browse files
interfaces/cap_minor_media.py
CHANGED
@@ -105,7 +105,7 @@ def predict(text, major_model_id, minor_model_id, tokenizer_id, HF_TOKEN=None):
|
|
105 |
print(filtered_probs) # debug
|
106 |
|
107 |
output_pred = {
|
108 |
-
f"[{major_index_to_id[k]}] {CAP_MEDIA_LABEL_NAMES[
|
109 |
for k, v in sorted(filtered_probs.items(), key=lambda item: item[1], reverse=True)
|
110 |
}
|
111 |
print(output_pred) # debug
|
|
|
105 |
print(filtered_probs) # debug
|
106 |
|
107 |
output_pred = {
|
108 |
+
f"[{major_index_to_id[k]}] {CAP_MEDIA_LABEL_NAMES[k]}": v
|
109 |
for k, v in sorted(filtered_probs.items(), key=lambda item: item[1], reverse=True)
|
110 |
}
|
111 |
print(output_pred) # debug
|