Text Classification
Transformers
PyTorch
Safetensors
xlm-roberta
genre
text-genre
Inference Endpoints
TajaKuzman commited on
Commit
be4e3d7
1 Parent(s): d31f5f4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -186,8 +186,11 @@ predictions, logit_output = model.predict(["How to create a good text classifica
186
  "On our site, you can find a great genre identification model which you can use for thousands of different tasks. With our model, you can fastly and reliably obtain high-quality genre predictions and explore which genres exist in your corpora. Available for free!"]
187
  )
188
  predictions
189
- ### Output:
190
- ### (['Instruction', 'Promotion']
 
 
 
191
  ```
192
 
193
  ## Performance
 
186
  "On our site, you can find a great genre identification model which you can use for thousands of different tasks. With our model, you can fastly and reliably obtain high-quality genre predictions and explore which genres exist in your corpora. Available for free!"]
187
  )
188
  predictions
189
+ # Output: array([3, 8])
190
+
191
+ [model.config.id2label[i] for i in predictions]
192
+ # Output: ['Instruction', 'Promotion']
193
+
194
  ```
195
 
196
  ## Performance