AmandaPanda commited on
Commit
5fa632f
·
verified ·
1 Parent(s): 87c4735

Redo iloc command (reduce df to 20 rows).

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -15,9 +15,10 @@ import pandas as pd
15
 
16
  # Load first 20 rows of dataset (merve/coco)
17
  from datasets import load_dataset
18
- dataset = load_dataset("merve/coco", split='train[0:19]')
19
 
20
- df = pd.dataset
 
21
 
22
  print ("Print to show the 20 images available.")
23
  print ("The app will then select an image for further exploration.")
 
15
 
16
  # Load first 20 rows of dataset (merve/coco)
17
  from datasets import load_dataset
18
+ dataset = load_dataset("merve/coco", split='train', stream=True)
19
 
20
+ # Reduce dataset to 20 rows
21
+ df = pd.dataset.iloc[0:19]
22
 
23
  print ("Print to show the 20 images available.")
24
  print ("The app will then select an image for further exploration.")