Unverified Commit d1387ece authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

fix timeout constant (#11252)

* fix timeout constant

* style

* fix
parent 6a7c2d0a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment