Spaces:
Runtime error
Runtime error
BusinessDev
commited on
Commit
•
2eec429
1
Parent(s):
fbb5b4f
Update train.py
Browse files
train.py
CHANGED
@@ -26,7 +26,7 @@ def prepare_text_dataset(data, chunk_size):
|
|
26 |
|
27 |
def init():
|
28 |
# Load the model and tokenizer
|
29 |
-
model_name = "
|
30 |
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
|
31 |
model = MBartForSequenceClassification.from_pretrained(model_name)
|
32 |
chunk_size = 512
|
|
|
26 |
|
27 |
def init():
|
28 |
# Load the model and tokenizer
|
29 |
+
model_name = "language-ml-lab/AzerBert" # Replace with your model name if different
|
30 |
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
|
31 |
model = MBartForSequenceClassification.from_pretrained(model_name)
|
32 |
chunk_size = 512
|