Spaces:
Sleeping
Sleeping
smhavens
commited on
Commit
·
5141392
1
Parent(s):
413574b
testing example vals
Browse files
app.py
CHANGED
@@ -56,8 +56,11 @@ def training():
|
|
56 |
# For agility we only 1/2 of our available data
|
57 |
n_examples = dataset['train'].num_rows // 2
|
58 |
|
|
|
|
|
59 |
for i in range(n_examples):
|
60 |
example = train_data[i]
|
|
|
61 |
train_examples.append(InputExample(texts=[example['id'], example['text']]))
|
62 |
|
63 |
# train_dataloader = DataLoader(train_examples, shuffle=True, batch_size=16)
|
|
|
56 |
# For agility we only 1/2 of our available data
|
57 |
n_examples = dataset['train'].num_rows // 2
|
58 |
|
59 |
+
|
60 |
+
|
61 |
for i in range(n_examples):
|
62 |
example = train_data[i]
|
63 |
+
print(example["text"], example["id"])
|
64 |
train_examples.append(InputExample(texts=[example['id'], example['text']]))
|
65 |
|
66 |
# train_dataloader = DataLoader(train_examples, shuffle=True, batch_size=16)
|