sentence-transformers
Safetensors
setfit
English
bert
code-security
vulnerability-detection
sast
spidercob
Eval Results (legacy)
Instructions to use Sumeetgpt/code-risk-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Sumeetgpt/code-risk-classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Sumeetgpt/code-risk-classifier") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use Sumeetgpt/code-risk-classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("Sumeetgpt/code-risk-classifier") - Notebooks
- Google Colab
- Kaggle
File size: 130 Bytes
3342981 | 1 2 3 4 5 6 7 8 9 | {
"normalize_embeddings": false,
"labels": [
"REAL_SECRET",
"VULNERABLE_LOGIC",
"TEST_MOCK",
"SAFE_CODE"
]
} |