mo-mittal commited on
Commit
017f762
1 Parent(s): 38cb8a1

Update reddit_political_subs.py

Browse files
Files changed (1) hide show
  1. reddit_political_subs.py +2 -2
reddit_political_subs.py CHANGED
@@ -39,7 +39,7 @@ class RedditPoliticalSubs(datasets.GeneratorBasedBuilder):
39
  "selftext_html": Value("string"),
40
  "author_flair_text": Value("string"),
41
  "link_flair_text": Value("string"),
42
- "image": Image(),
43
  "image_text": Value("string"),
44
  }),
45
  supervised_keys=None,
@@ -96,6 +96,6 @@ class RedditPoliticalSubs(datasets.GeneratorBasedBuilder):
96
  "selftext_html": row["selftext_html"] if pd.notna(row["selftext_html"]) else "",
97
  "author_flair_text": row["author_flair_text"] if pd.notna(row["author_flair_text"]) else "",
98
  "link_flair_text": row["link_flair_text"] if pd.notna(row["link_flair_text"]) else "",
99
- "image": row['url'],
100
  "image_text": row['image_text'] if pd.notna(row['image_text']) else "",
101
  }
 
39
  "selftext_html": Value("string"),
40
  "author_flair_text": Value("string"),
41
  "link_flair_text": Value("string"),
42
+ #"image": Image(),
43
  "image_text": Value("string"),
44
  }),
45
  supervised_keys=None,
 
96
  "selftext_html": row["selftext_html"] if pd.notna(row["selftext_html"]) else "",
97
  "author_flair_text": row["author_flair_text"] if pd.notna(row["author_flair_text"]) else "",
98
  "link_flair_text": row["link_flair_text"] if pd.notna(row["link_flair_text"]) else "",
99
+ #"image": row['url'],
100
  "image_text": row['image_text'] if pd.notna(row['image_text']) else "",
101
  }