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
renzhc
diffusers_dcu
Commits
d1387ece
Unverified
Commit
d1387ece
authored
Apr 09, 2025
by
Sayak Paul
Committed by
GitHub
Apr 09, 2025
Browse files
fix timeout constant (#11252)
* fix timeout constant * style * fix
parent
6a7c2d0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
utils/fetch_latest_release_branch.py
utils/fetch_latest_release_branch.py
+1
-3
No files found.
utils/fetch_latest_release_branch.py
View file @
d1387ece
...
...
@@ -17,8 +17,6 @@
import
requests
from
packaging.version
import
parse
from
..src.diffusers.utils.constants
import
DIFFUSERS_REQUEST_TIMEOUT
# GitHub repository details
USER
=
"huggingface"
...
...
@@ -33,7 +31,7 @@ def fetch_all_branches(user, repo):
response
=
requests
.
get
(
f
"https://api.github.com/repos/
{
user
}
/
{
repo
}
/branches"
,
params
=
{
"page"
:
page
},
timeout
=
DIFFUSERS_REQUEST_TIMEOUT
,
timeout
=
60
,
)
# Check if the request was successful
...
...
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