Instructions to use Motahar/clickbait-csebert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Motahar/clickbait-csebert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Motahar/clickbait-csebert", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Motahar/clickbait-csebert", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Updated ganbert.py
Browse files- ganbert.py +1 -0
ganbert.py
CHANGED
|
@@ -34,6 +34,7 @@ from datasets import Dataset
|
|
| 34 |
import torch.nn as nn
|
| 35 |
import torch.nn.functional as F
|
| 36 |
import sys
|
|
|
|
| 37 |
|
| 38 |
class GAN(PreTrainedModel):
|
| 39 |
config_class = GanBertConfig
|
|
|
|
| 34 |
import torch.nn as nn
|
| 35 |
import torch.nn.functional as F
|
| 36 |
import sys
|
| 37 |
+
from typing import List, Optional, Tuple, Union
|
| 38 |
|
| 39 |
class GAN(PreTrainedModel):
|
| 40 |
config_class = GanBertConfig
|