Spaces:
Sleeping
Sleeping
Commit ·
e7245a6
1
Parent(s): d665e7a
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ import pickle
|
|
| 46 |
# or a memory efficient but a bit slower prefix tree (trie) -- it is implemented with `marisa_trie` from
|
| 47 |
# https://huggingface.co/facebook/mgenre-wiki/blob/main/
|
| 48 |
|
| 49 |
-
file_path_marisa_trie = hf_hub_download(
|
| 50 |
|
| 51 |
from genre.trie import MarisaTrie
|
| 52 |
with open(file_path_marisa_trie, "rb") as f:
|
|
|
|
| 46 |
# or a memory efficient but a bit slower prefix tree (trie) -- it is implemented with `marisa_trie` from
|
| 47 |
# https://huggingface.co/facebook/mgenre-wiki/blob/main/
|
| 48 |
|
| 49 |
+
file_path_marisa_trie = hf_hub_download("facebook/mgenre-wiki", "titles_lang_all105_marisa_trie_with_redirect.pkl")
|
| 50 |
|
| 51 |
from genre.trie import MarisaTrie
|
| 52 |
with open(file_path_marisa_trie, "rb") as f:
|