Spaces:
Runtime error
Runtime error
Commit
·
937a6cb
1
Parent(s):
ef17515
Update app.py
Browse files
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 |
|