Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ from transformers import BertTokenizer, BertForSequenceClassification
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
# Load the tokenizer and model
|
| 6 |
-
tokenizer = BertTokenizer.from_pretrained('
|
| 7 |
-
model = BertForSequenceClassification.from_pretrained('
|
| 8 |
|
| 9 |
# Define the labels
|
| 10 |
labels = [
|
|
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
# Load the tokenizer and model
|
| 6 |
+
tokenizer = BertTokenizer.from_pretrained('Non-playing-Character/RAGFiller')
|
| 7 |
+
model = BertForSequenceClassification.from_pretrained('Non-playing-Character/RAGFiller', num_labels=30)
|
| 8 |
|
| 9 |
# Define the labels
|
| 10 |
labels = [
|