awacke1 commited on
Commit
964b0a6
·
1 Parent(s): 6becdd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -5,7 +5,12 @@ from datasets import load_dataset
5
  #dataset = load_dataset("laion/laion2B-en-joined") too big space evicted
6
  #dataset = load_dataset("laion/laion-coco") # try smaller? evicted again. try try again
7
  #dataset = load_dataset("laion/laion400m") # smaller still - you can do it!
8
- dataset = load_dataset("laion/laion-art") # 1.2G? parquet
 
 
 
 
 
9
 
10
  #print(dataset.features)
11
  #print (type(dataset))
 
5
  #dataset = load_dataset("laion/laion2B-en-joined") too big space evicted
6
  #dataset = load_dataset("laion/laion-coco") # try smaller? evicted again. try try again
7
  #dataset = load_dataset("laion/laion400m") # smaller still - you can do it!
8
+ dataset = load_dataset("laion/laion-art", split="train") # 1.2G? parquet
9
+ #dataset_filtered = dataset.filter(lambda x : x["TEXT"].contains
10
+
11
+ dataset = dataset.filter(lambda example: example["TEXT"].startswith("Christmas"))
12
+ len(sw)
13
+ print(sw)
14
 
15
  #print(dataset.features)
16
  #print (type(dataset))