Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
93f73a38
Unverified
Commit
93f73a38
authored
Jun 12, 2023
by
NielsRogge
Committed by
GitHub
Jun 12, 2023
Browse files
Fix push to hub (#24187)
Add fix
parent
e26c6f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/transformers/utils/hub.py
src/transformers/utils/hub.py
+0
-1
No files found.
src/transformers/utils/hub.py
View file @
93f73a38
...
@@ -712,7 +712,6 @@ class PushToHubMixin:
...
@@ -712,7 +712,6 @@ class PushToHubMixin:
operations
=
[]
operations
=
[]
# upload standalone files
# upload standalone files
for
file
in
modified_files
:
for
file
in
modified_files
:
operations
.
append
(
CommitOperationAdd
(
path_or_fileobj
=
os
.
path
.
join
(
working_dir
,
file
),
path_in_repo
=
file
))
if
os
.
path
.
isdir
(
os
.
path
.
join
(
working_dir
,
file
)):
if
os
.
path
.
isdir
(
os
.
path
.
join
(
working_dir
,
file
)):
# go over individual files of folder
# go over individual files of folder
for
f
in
os
.
listdir
(
os
.
path
.
join
(
working_dir
,
file
)):
for
f
in
os
.
listdir
(
os
.
path
.
join
(
working_dir
,
file
)):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment