kovacsvi commited on
Commit
55b014b
·
1 Parent(s): 0f6a4f6

output info

Browse files
Files changed (1) hide show
  1. interfaces/cap_minor_media.py +2 -0
interfaces/cap_minor_media.py CHANGED
@@ -190,6 +190,8 @@ def predict_flat(text, model_id, tokenizer_id, HF_TOKEN=None):
190
  This method returns predictions made by a single model. Both media codes and minor topics may appear in the output list. **Only the top 10 most confident labels are displayed**.
191
  """
192
 
 
 
193
  return interpretation_info, output_pred, output_info
194
 
195
 
 
190
  This method returns predictions made by a single model. Both media codes and minor topics may appear in the output list. **Only the top 10 most confident labels are displayed**.
191
  """
192
 
193
+ output_info = f'<p style="text-align: center; display: block">Prediction was made using the <a href="https://huggingface.co/{model_id}">{model_id}</a> model.</p>'
194
+
195
  return interpretation_info, output_pred, output_info
196
 
197