Spaces:
Runtime error
Runtime error
Update infer.py
Browse files
infer.py
CHANGED
@@ -151,8 +151,6 @@ def collate_fn(examples, column_name, tokenizer):
|
|
151 |
feature_cols = ["input_ids", "attention_mask"]
|
152 |
features = [{k: x[k] for k in feature_cols} for x in examples]
|
153 |
|
154 |
-
print(features)
|
155 |
-
|
156 |
tokenized = tokenizer.pad(
|
157 |
features,
|
158 |
padding=True,
|
|
|
151 |
feature_cols = ["input_ids", "attention_mask"]
|
152 |
features = [{k: x[k] for k in feature_cols} for x in examples]
|
153 |
|
|
|
|
|
154 |
tokenized = tokenizer.pad(
|
155 |
features,
|
156 |
padding=True,
|