awacke1 commited on
Commit
e9d5482
·
1 Parent(s): 1bd65f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,15 +6,15 @@ from datasets import load_dataset
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
 
11
  print (type(dataset))
12
 
13
  df = pd.DataFrame(dataset)
14
  #df = pd.read_csv("images.csv")
15
 
16
- df['url'] = df['URL'].apply(lambda x: '<a href= "' + str(x) + '" target="_blank"> <img src= "' + str(x) + '"/> </a>')
17
- df = df[[ 'URL', 'TEXT']]
18
 
19
  def display_df():
20
  df_images = df.head(100)
 
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
+ dataset.features
10
 
11
  print (type(dataset))
12
 
13
  df = pd.DataFrame(dataset)
14
  #df = pd.read_csv("images.csv")
15
 
16
+ #df['url'] = df['URL'].apply(lambda x: '<a href= "' + str(x) + '" target="_blank"> <img src= "' + str(x) + '"/> </a>')
17
+ #df = df[[ 'URL', 'TEXT']]
18
 
19
  def display_df():
20
  df_images = df.head(100)