Spaces:
Sleeping
Sleeping
constantinSch
commited on
Commit
•
da81b50
1
Parent(s):
630e4d0
Update app.py
Browse filescorrect indents
app.py
CHANGED
@@ -47,9 +47,9 @@ import pickle
|
|
47 |
# https://huggingface.co/facebook/mgenre-wiki/blob/main/
|
48 |
file_path_marisa_trie = hf_hub_download(repo_id="facebook/mgenre-wiki", filename="titles_lang_all105_marisa_trie_with_redirect.pkl")
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
54 |
|
55 |
|
|
|
47 |
# https://huggingface.co/facebook/mgenre-wiki/blob/main/
|
48 |
file_path_marisa_trie = hf_hub_download(repo_id="facebook/mgenre-wiki", filename="titles_lang_all105_marisa_trie_with_redirect.pkl")
|
49 |
|
50 |
+
from genre.trie import MarisaTrie
|
51 |
+
with open(file_path_marisa_trie, "rb") as f:
|
52 |
+
trie = pickle.load(f)
|
53 |
|
54 |
|
55 |
|