Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ dataset = load_dataset("mwitiderrick/swahili")
|
|
14 |
print(f"Dataset columns: {dataset['train'].column_names}")
|
15 |
|
16 |
# Select a subset of the dataset (e.g., first 100,000 rows)
|
17 |
-
subset_size =
|
18 |
subset_dataset = dataset["train"].select(range(min(subset_size, len(dataset["train"]))))
|
19 |
print(f"Using a subset of {len(subset_dataset)} rows for training.")
|
20 |
|
|
|
14 |
print(f"Dataset columns: {dataset['train'].column_names}")
|
15 |
|
16 |
# Select a subset of the dataset (e.g., first 100,000 rows)
|
17 |
+
subset_size = 50000 # Adjust the size as needed
|
18 |
subset_dataset = dataset["train"].select(range(min(subset_size, len(dataset["train"]))))
|
19 |
print(f"Using a subset of {len(subset_dataset)} rows for training.")
|
20 |
|