cathw commited on
Commit
f09ab08
1 Parent(s): 508230e

Upload reddit_climate_comment.py

Browse files
Files changed (1) hide show
  1. reddit_climate_comment.py +2 -2
reddit_climate_comment.py CHANGED
@@ -1,7 +1,7 @@
1
  import csv
2
  import json
3
  import os
4
- from datasets import GeneratorBasedBuilder, Features, Value, Sequence, SplitGenerator, BuilderConfig, DatasetInfo, Split
5
  import logging
6
  import pandas as pd
7
  from typing import Dict
@@ -24,7 +24,7 @@ class NewDataset(GeneratorBasedBuilder):
24
  "post_author": Value("string"),
25
  "post_body": Value("string"),
26
  "post_url": Value("string"),
27
- "post_pic": Value("string"),
28
  "subreddit": Value("string"),
29
  "post_timestamp": Value("string"),
30
  "post_upvotes": Value("int32"),
 
1
  import csv
2
  import json
3
  import os
4
+ from datasets import GeneratorBasedBuilder, Features, Value, Sequence, SplitGenerator, BuilderConfig, DatasetInfo, Split, Image
5
  import logging
6
  import pandas as pd
7
  from typing import Dict
 
24
  "post_author": Value("string"),
25
  "post_body": Value("string"),
26
  "post_url": Value("string"),
27
+ "post_pic": Image(),
28
  "subreddit": Value("string"),
29
  "post_timestamp": Value("string"),
30
  "post_upvotes": Value("int32"),