不能直接离线使用的地方
Browse files- tokenization_qwen.py +1 -1
tokenization_qwen.py
CHANGED
|
@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
|
|
| 27 |
|
| 28 |
|
| 29 |
VOCAB_FILES_NAMES = {"vocab_file": "qwen.tiktoken", "ttf": "SimSun.ttf"}
|
| 30 |
-
FONT_PATH = try_to_load_from_cache("
|
| 31 |
if FONT_PATH is None:
|
| 32 |
if not os.path.exists("SimSun.ttf"):
|
| 33 |
ttf = requests.get("https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/SimSun.ttf")
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
VOCAB_FILES_NAMES = {"vocab_file": "qwen.tiktoken", "ttf": "SimSun.ttf"}
|
| 30 |
+
FONT_PATH = try_to_load_from_cache("./", "SimSun.ttf")
|
| 31 |
if FONT_PATH is None:
|
| 32 |
if not os.path.exists("SimSun.ttf"):
|
| 33 |
ttf = requests.get("https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/SimSun.ttf")
|