Instructions to use BrachioLab/supernova-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BrachioLab/supernova-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="BrachioLab/supernova-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("BrachioLab/supernova-classification") model = AutoModelForSequenceClassification.from_pretrained("BrachioLab/supernova-classification") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,8 +7,8 @@ license: mit
|
|
| 7 |
import torch
|
| 8 |
from informer_models import InformerConfig, InformerForSequenceClassification
|
| 9 |
|
| 10 |
-
# Loading the model
|
| 11 |
model = InformerForSequenceClassification.from_pretrained("BrachioLab/supernova-classification")
|
|
|
|
| 12 |
model.to(device)
|
| 13 |
model.eval()
|
| 14 |
y_true = []
|
|
|
|
| 7 |
import torch
|
| 8 |
from informer_models import InformerConfig, InformerForSequenceClassification
|
| 9 |
|
|
|
|
| 10 |
model = InformerForSequenceClassification.from_pretrained("BrachioLab/supernova-classification")
|
| 11 |
+
|
| 12 |
model.to(device)
|
| 13 |
model.eval()
|
| 14 |
y_true = []
|