lewtun HF staff commited on
Commit
2005b19
1 Parent(s): 06ca180
Files changed (3) hide show
  1. README.md +1 -0
  2. app.py +2 -9
  3. requirements.txt +2 -1
README.md CHANGED
@@ -4,6 +4,7 @@ emoji: 🥇
4
  colorFrom: gray
5
  colorTo: red
6
  sdk: streamlit
 
7
  app_file: app.py
8
  pinned: false
9
  ---
 
4
  colorFrom: gray
5
  colorTo: red
6
  sdk: streamlit
7
+ sdk_version: 1.15.2
8
  app_file: app.py
9
  pinned: false
10
  ---
app.py CHANGED
@@ -19,25 +19,18 @@ TASKS = sorted(get_dataset_config_names("ought/raft"))
19
  FORMATTED_TASK_NAMES = sorted([" ".join(t.capitalize() for t in task.split("_")) for task in TASKS])
20
 
21
 
22
- def extract_tags(dataset):
23
- tags = {}
24
- for tag in dataset.tags:
25
- k, v = tuple(tag.split(":", 1))
26
- tags[k] = v
27
- return tags
28
-
29
-
30
  def download_submissions():
31
  filt = DatasetFilter(benchmark="raft")
32
  all_submissions = list_datasets(filter=filt, cardData=True, use_auth_token=auth_token)
33
  submissions = []
34
 
35
  for dataset in all_submissions:
36
- tags = extract_tags(dataset)
37
  if tags.get("type") == "evaluation":
38
  submissions.append(dataset)
39
  return submissions
40
 
 
41
  def format_submissions(submissions):
42
  submission_data = {
43
  **{"Submitter": []},
 
19
  FORMATTED_TASK_NAMES = sorted([" ".join(t.capitalize() for t in task.split("_")) for task in TASKS])
20
 
21
 
 
 
 
 
 
 
 
 
22
  def download_submissions():
23
  filt = DatasetFilter(benchmark="raft")
24
  all_submissions = list_datasets(filter=filt, cardData=True, use_auth_token=auth_token)
25
  submissions = []
26
 
27
  for dataset in all_submissions:
28
+ tags = dataset.cardData
29
  if tags.get("type") == "evaluation":
30
  submissions.append(dataset)
31
  return submissions
32
 
33
+
34
  def format_submissions(submissions):
35
  submission_data = {
36
  **{"Submitter": []},
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  pandas<=1.4
2
  python-dotenv
3
  protobuf~=3.19.0
4
- huggingface-hub==0.9.1
 
 
1
  pandas<=1.4
2
  python-dotenv
3
  protobuf~=3.19.0
4
+ huggingface-hub==0.9.1
5
+ datasets==2.7.1