davanstrien HF staff commited on
Commit
0fa257c
β€’
1 Parent(s): 3f00085

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -3,6 +3,11 @@ from huggingface_hub import list_datasets, create_collection, get_collection, ad
3
  from tqdm.auto import tqdm
4
  from toolz import unique
5
  from collections import defaultdict
 
 
 
 
 
6
 
7
  def extract_languages(dataset_info):
8
  return [tag.split(':')[1] for tag in dataset_info.tags if tag.startswith('language:')]
 
3
  from tqdm.auto import tqdm
4
  from toolz import unique
5
  from collections import defaultdict
6
+ from huggingface_hub import login
7
+ import os
8
+
9
+ login(token=os.getenv('HF_TOKEN'))
10
+
11
 
12
  def extract_languages(dataset_info):
13
  return [tag.split(':')[1] for tag in dataset_info.tags if tag.startswith('language:')]