ehristoforu commited on
Commit
937a6cb
·
1 Parent(s): ef17515

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,6 +8,9 @@ import requests
8
 
9
  from share_btn import community_icon_html, loading_icon_html, share_js
10
 
 
 
 
11
  word_list_dataset = load_dataset("shawarmas/Censored-Words", data_files="test.txt", use_auth_token=True)
12
  word_list = word_list_dataset["train"]['text']
13
 
 
8
 
9
  from share_btn import community_icon_html, loading_icon_html, share_js
10
 
11
+ from huggingface_hub import login
12
+ login(token=os.environ.get("HF_READ_TOKEN"))
13
+
14
  word_list_dataset = load_dataset("shawarmas/Censored-Words", data_files="test.txt", use_auth_token=True)
15
  word_list = word_list_dataset["train"]['text']
16