mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 18:51:14 +06:00
parent
e719b65c31
commit
91f19a5b18
@ -1924,7 +1924,7 @@ def create_import_structure_from_path(module_path):
|
|||||||
if not module_name.endswith(".py"):
|
if not module_name.endswith(".py"):
|
||||||
continue
|
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()
|
file_content = f.read()
|
||||||
|
|
||||||
# Remove the .py suffix
|
# Remove the .py suffix
|
||||||
|
Loading…
Reference in New Issue
Block a user