AmandaPanda commited on
Commit
87c4735
·
verified ·
1 Parent(s): 781cfdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -13,14 +13,12 @@ demo.launch()
13
  ##pip install pandas
14
  import pandas as pd
15
 
16
-
17
- # Load database (merve/coco)
18
  from datasets import load_dataset
19
- dataset = load_dataset("merve/coco", split='train', streaming=True)
20
 
21
  df = pd.dataset
22
- # Select first 20 rows
23
- df.iloc[:20,:]
24
  print ("Print to show the 20 images available.")
25
  print ("The app will then select an image for further exploration.")
26
  print(df.head(20))
 
13
  ##pip install pandas
14
  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.")
24
  print(df.head(20))