Text Classification
Transformers
Safetensors
English
roberta
Generated from Trainer
classification
nlp
vulnerability
Eval Results (legacy)
text-embeddings-inference
Instructions to use CIRCL/vulnerability-severity-classification-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CIRCL/vulnerability-severity-classification-roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CIRCL/vulnerability-severity-classification-roberta-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("CIRCL/vulnerability-severity-classification-roberta-base") model = AutoModelForSequenceClassification.from_pretrained("CIRCL/vulnerability-severity-classification-roberta-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -48,6 +48,8 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
| 48 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 49 |
model.eval()
|
| 50 |
|
|
|
|
|
|
|
| 51 |
test_description = "SAP NetWeaver Visual Composer Metadata Uploader is not protected with a proper authorization, allowing unauthenticated agent to upload potentially malicious executable binaries \
|
| 52 |
that could severely harm the host system. This could significantly affect the confidentiality, integrity, and availability of the targeted system."
|
| 53 |
inputs = tokenizer(test_description, return_tensors="pt", truncation=True, padding=True)
|
|
|
|
| 48 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 49 |
model.eval()
|
| 50 |
|
| 51 |
+
print("Model revision:", model.config._commit_hash)
|
| 52 |
+
|
| 53 |
test_description = "SAP NetWeaver Visual Composer Metadata Uploader is not protected with a proper authorization, allowing unauthenticated agent to upload potentially malicious executable binaries \
|
| 54 |
that could severely harm the host system. This could significantly affect the confidentiality, integrity, and availability of the targeted system."
|
| 55 |
inputs = tokenizer(test_description, return_tensors="pt", truncation=True, padding=True)
|