simonJJJ commited on
Commit
1fb8c15
1 Parent(s): 2d34a29

Update tokenization_qwen.py

Browse files
Files changed (1) hide show
  1. 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("../", "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")
 
27
 
28
 
29
  VOCAB_FILES_NAMES = {"vocab_file": "qwen.tiktoken", "ttf": "SimSun.ttf"}
30
+ FONT_PATH = try_to_load_from_cache("Qwen/Qwen-VL-Chat", "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")