art-manuh commited on
Commit
c10dbbf
·
verified ·
1 Parent(s): 396d3ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 100000 # 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
 
 
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