kovacsvi commited on
Commit
d6c2bce
·
1 Parent(s): 5f6b004
Files changed (1) hide show
  1. interfaces/cap_minor_media.py +1 -1
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[filtered_probs[k]]}": v
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