Spaces:
Sleeping
Sleeping
Commit
•
362af59
1
Parent(s):
c6b60a2
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import GPT2Tokenizer, GPT2LMHeadModel, Trainer, TrainingArgume
|
|
2 |
from datasets import load_dataset
|
3 |
|
4 |
# Load the text dataset from the specified file
|
5 |
-
dataset = load_dataset("text", data_files="
|
6 |
|
7 |
|
8 |
# Initialize the GPT-2 tokenizer
|
|
|
2 |
from datasets import load_dataset
|
3 |
|
4 |
# Load the text dataset from the specified file
|
5 |
+
dataset = load_dataset("text", data_files="training.txt")
|
6 |
|
7 |
|
8 |
# Initialize the GPT-2 tokenizer
|