mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
parent
e719b65c31
commit
91f19a5b18
@ -1924,7 +1924,7 @@ def create_import_structure_from_path(module_path):
|
||||
if not module_name.endswith(".py"):
|
||||
continue
|
||||
|
||||
with open(os.path.join(directory, module_name)) as f:
|
||||
with open(os.path.join(directory, module_name), encoding="utf-8") as f:
|
||||
file_content = f.read()
|
||||
|
||||
# Remove the .py suffix
|
||||
|
Loading…
Reference in New Issue
Block a user