1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

fix timeout constant (#11252)

* fix timeout constant

* style

* fix
This commit is contained in:
Sayak Paul
2025-04-09 17:48:52 +05:30
committed by GitHub
parent 6a7c2d0afa
commit d1387ecee5

View File

@@ -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