Spaces:
Runtime error
Runtime error
Alberto Carmona
commited on
Commit
•
376656f
1
Parent(s):
d6c59b5
Debug problem loading gz file
Browse files- clip/simple_tokenizer.py +5 -1
clip/simple_tokenizer.py
CHANGED
@@ -9,7 +9,11 @@ import regex as re
|
|
9 |
|
10 |
@lru_cache()
|
11 |
def default_bpe():
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
|
14 |
|
15 |
@lru_cache()
|
|
|
9 |
|
10 |
@lru_cache()
|
11 |
def default_bpe():
|
12 |
+
abs_path = os.path.abspath(__file__)
|
13 |
+
dir_name = os.path.dirname(abs_path)
|
14 |
+
print(abs_path)
|
15 |
+
print(dir_name)
|
16 |
+
return os.path.join(dir_name, "bpe_simple_vocab_16e6.txt.gz")
|
17 |
|
18 |
|
19 |
@lru_cache()
|