noumanjavaid commited on
Commit
44dd814
·
verified ·
1 Parent(s): 90a0d81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -321,7 +321,8 @@ dataset.set_format(type="torch", columns=["input_ids", "labels"])
321
  tf_dataset = model.prepare_tf_dataset(
322
  dataset,
323
  batch_size=4,
324
- shuffle=True,)
 
325
 
326
  # %% [markdown]
327
  # **6**. Start training with your machine learning framework! Check out the 🤗 Transformers [text classification guide](https://huggingface.co/docs/transformers/tasks/sequence_classification) for an end-to-end example of how to train a model on a text dataset.
 
321
  tf_dataset = model.prepare_tf_dataset(
322
  dataset,
323
  batch_size=4,
324
+ shuffle=True,
325
+ trust_remote_code=True)
326
 
327
  # %% [markdown]
328
  # **6**. Start training with your machine learning framework! Check out the 🤗 Transformers [text classification guide](https://huggingface.co/docs/transformers/tasks/sequence_classification) for an end-to-end example of how to train a model on a text dataset.