Skip to content

Commit 8f9f1ef

Browse files
NielsRoggesgugger
authored andcommitted
Fix push to hub (#24187)
Add fix
1 parent 497d667 commit 8f9f1ef

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/transformers/utils/hub.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,6 @@ def _upload_modified_files(
712712
operations = []
713713
# upload standalone files
714714
for file in modified_files:
715-
operations.append(CommitOperationAdd(path_or_fileobj=os.path.join(working_dir, file), path_in_repo=file))
716715
if os.path.isdir(os.path.join(working_dir, file)):
717716
# go over individual files of folder
718717
for f in os.listdir(os.path.join(working_dir, file)):

0 commit comments

Comments
 (0)