Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def fetch_zero_gpu_spaces_once():
|
|
45 |
try:
|
46 |
url = "https://huggingface.co/api/spaces"
|
47 |
params = {
|
48 |
-
"limit":
|
49 |
"hardware": "cpu"
|
50 |
}
|
51 |
resp = requests.get(url, params=params, timeout=30)
|
|
|
45 |
try:
|
46 |
url = "https://huggingface.co/api/spaces"
|
47 |
params = {
|
48 |
+
"limit": 1000, # 너무 크게 잡으면 응답 지연 → 50개 내외로 제한
|
49 |
"hardware": "cpu"
|
50 |
}
|
51 |
resp = requests.get(url, params=params, timeout=30)
|