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
"tasks/vscode:/vscode.git/clone" did not exist on "a8d172b31e921d0ad0889660443846098496d696"
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
Show 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:
operations
=
[]
# upload standalone 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
)):
# go over individual files of folder
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