Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -435,6 +435,7 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
435 |
</div>
|
436 |
</div>
|
437 |
"""
|
|
|
438 |
def get_trending_spaces(progress=gr.Progress()) -> Tuple[str, str]:
|
439 |
"""ํธ๋ ๋ฉ ์คํ์ด์ค ๊ฐ์ ธ์ค๊ธฐ"""
|
440 |
url = "https://huggingface.co/api/spaces"
|
@@ -443,8 +444,7 @@ def get_trending_spaces(progress=gr.Progress()) -> Tuple[str, str]:
|
|
443 |
progress(0, desc="Fetching spaces data...")
|
444 |
params = {
|
445 |
'full': 'true',
|
446 |
-
'limit': 300
|
447 |
-
'sort': 'trending' # 'likes'์์ 'trending'์ผ๋ก ๋ณ๊ฒฝ
|
448 |
}
|
449 |
|
450 |
response = requests.get(url, params=params)
|
@@ -478,8 +478,7 @@ def get_models(progress=gr.Progress()) -> Tuple[str, str]:
|
|
478 |
progress(0, desc="Fetching models data...")
|
479 |
params = {
|
480 |
'full': 'true',
|
481 |
-
'limit': 300
|
482 |
-
'sort': 'trending' # 'likes'์์ 'trending'์ผ๋ก ๋ณ๊ฒฝ
|
483 |
}
|
484 |
response = requests.get(url, params=params)
|
485 |
response.raise_for_status()
|
@@ -512,8 +511,7 @@ def get_datasets(progress=gr.Progress()) -> Tuple[str, str]:
|
|
512 |
progress(0, desc="Fetching datasets data...")
|
513 |
params = {
|
514 |
'full': 'true',
|
515 |
-
'limit': 300
|
516 |
-
'sort': 'trending' # 'likes'์์ 'trending'์ผ๋ก ๋ณ๊ฒฝ
|
517 |
}
|
518 |
response = requests.get(url, params=params)
|
519 |
response.raise_for_status()
|
|
|
435 |
</div>
|
436 |
</div>
|
437 |
"""
|
438 |
+
|
439 |
def get_trending_spaces(progress=gr.Progress()) -> Tuple[str, str]:
|
440 |
"""ํธ๋ ๋ฉ ์คํ์ด์ค ๊ฐ์ ธ์ค๊ธฐ"""
|
441 |
url = "https://huggingface.co/api/spaces"
|
|
|
444 |
progress(0, desc="Fetching spaces data...")
|
445 |
params = {
|
446 |
'full': 'true',
|
447 |
+
'limit': 300 # sort ํ๋ผ๋ฏธํฐ ์ ๊ฑฐ
|
|
|
448 |
}
|
449 |
|
450 |
response = requests.get(url, params=params)
|
|
|
478 |
progress(0, desc="Fetching models data...")
|
479 |
params = {
|
480 |
'full': 'true',
|
481 |
+
'limit': 300 # sort ํ๋ผ๋ฏธํฐ ์ ๊ฑฐ
|
|
|
482 |
}
|
483 |
response = requests.get(url, params=params)
|
484 |
response.raise_for_status()
|
|
|
511 |
progress(0, desc="Fetching datasets data...")
|
512 |
params = {
|
513 |
'full': 'true',
|
514 |
+
'limit': 300 # sort ํ๋ผ๋ฏธํฐ ์ ๊ฑฐ
|
|
|
515 |
}
|
516 |
response = requests.get(url, params=params)
|
517 |
response.raise_for_status()
|