Spaces:
Sleeping
Sleeping
Redo iloc command (reduce df to 20 rows).
Browse files
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
|
| 19 |
|
| 20 |
-
|
|
|
|
| 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.")
|