openfree commited on
Commit
6c0b182
1 Parent(s): e66b234

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -455,7 +455,7 @@ def get_trending_spaces(search_query="", sort_by="rank", progress=gr.Progress())
455
  if search_query:
456
  filtered_spaces = []
457
  # 추가 데이터 가져오기 (검색용)
458
- params['limit'] = 1000
459
  response = requests.get(url, params=params)
460
  all_spaces = response.json()
461
 
@@ -510,7 +510,7 @@ def get_models(search_query="", sort_by="rank", progress=gr.Progress()) -> Tuple
510
  if search_query:
511
  filtered_models = []
512
  # 추가 데이터 가져오기 (검색용)
513
- params['limit'] = 1000
514
  response = requests.get(url, params=params)
515
  all_models = response.json()
516
 
@@ -565,7 +565,7 @@ def get_datasets(search_query="", sort_by="rank", progress=gr.Progress()) -> Tup
565
  if search_query:
566
  filtered_datasets = []
567
  # 추가 데이터 가져오기 (검색용)
568
- params['limit'] = 1000
569
  response = requests.get(url, params=params)
570
  all_datasets = response.json()
571
 
 
455
  if search_query:
456
  filtered_spaces = []
457
  # 추가 데이터 가져오기 (검색용)
458
+ params['limit'] = 10
459
  response = requests.get(url, params=params)
460
  all_spaces = response.json()
461
 
 
510
  if search_query:
511
  filtered_models = []
512
  # 추가 데이터 가져오기 (검색용)
513
+ params['limit'] = 300
514
  response = requests.get(url, params=params)
515
  all_models = response.json()
516
 
 
565
  if search_query:
566
  filtered_datasets = []
567
  # 추가 데이터 가져오기 (검색용)
568
+ params['limit'] = 300
569
  response = requests.get(url, params=params)
570
  all_datasets = response.json()
571