Spaces:
Sleeping
Sleeping
noumanjavaid
commited on
Update app.py
Browse files
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.
|