openfree commited on
Commit
2069306
โ€ข
1 Parent(s): 5a88e63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
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()