未验证 提交 4159ebdf 编写于 作者: B Bin Lu 提交者: GitHub

Update build_gallery.py

fix windows build_gallery bug
上级 d9ed5341
......@@ -37,7 +37,7 @@ def split_datafile(data_file, image_root, delimiter="\t"):
'''
gallery_images = []
gallery_docs = []
with open(data_file) as f:
with open(data_file, 'r', encoding='utf-8') as f:
lines = f.readlines()
for i, line in enumerate(lines):
line = line.strip().split(delimiter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册