openfree commited on
Commit
ba3c320
ยท
verified ยท
1 Parent(s): bd54d6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -622,6 +622,7 @@ target_spaces = {
622
 
623
  "r3gm/DiffuseCraft": "https://huggingface.co/spaces/r3gm/DiffuseCraft",
624
 
 
625
  "etri-vilab/KOALA": "https://huggingface.co/spaces/etri-vilab/KOALA",
626
  "etri-vilab/Ko-LLaVA": "https://huggingface.co/spaces/etri-vilab/Ko-LLaVA",
627
 
@@ -641,7 +642,7 @@ def get_spaces_data(sort_type="trending", progress=gr.Progress()):
641
  url = "https://huggingface.co/api/spaces"
642
  params = {
643
  'full': 'true',
644
- 'limit': 400
645
  }
646
 
647
  if sort_type == "modes":
@@ -688,7 +689,7 @@ def get_spaces_data(sort_type="trending", progress=gr.Progress()):
688
 
689
  fig.update_layout(
690
  title={
691
- 'text': f'Hugging Face Spaces {sort_type.title()} Rankings (Top 400)',
692
  'y':0.95,
693
  'x':0.5,
694
  'xanchor': 'center',
@@ -699,9 +700,9 @@ def get_spaces_data(sort_type="trending", progress=gr.Progress()):
699
  yaxis=dict(
700
  autorange='reversed', # Y์ถ•์„ ๋ฐ˜์ „
701
  tickmode='array',
702
- ticktext=[str(i) for i in range(1, 401, 20)], # 1๋ถ€ํ„ฐ 400๊นŒ์ง€ 20 ๊ฐ„๊ฒฉ์œผ๋กœ ํ‘œ์‹œ
703
- tickvals=[i for i in range(1, 401, 20)],
704
- range=[1, 400] # Y์ถ• ๋ฒ”์œ„๋ฅผ 1๋ถ€ํ„ฐ 400๊นŒ์ง€๋กœ ์„ค์ •
705
  ),
706
  height=800,
707
  showlegend=False,
@@ -849,7 +850,7 @@ def get_trending_spaces_without_token():
849
  params = {
850
  'sort': 'likes',
851
  'direction': -1,
852
- 'limit': 400,
853
  'full': 'true'
854
  }
855
 
 
622
 
623
  "r3gm/DiffuseCraft": "https://huggingface.co/spaces/r3gm/DiffuseCraft",
624
 
625
+ "LeeSangHoon/HierSpeech_TTS": "https://huggingface.co/spaces/LeeSangHoon/HierSpeech_TTS",
626
  "etri-vilab/KOALA": "https://huggingface.co/spaces/etri-vilab/KOALA",
627
  "etri-vilab/Ko-LLaVA": "https://huggingface.co/spaces/etri-vilab/Ko-LLaVA",
628
 
 
642
  url = "https://huggingface.co/api/spaces"
643
  params = {
644
  'full': 'true',
645
+ 'limit': 500
646
  }
647
 
648
  if sort_type == "modes":
 
689
 
690
  fig.update_layout(
691
  title={
692
+ 'text': f'Hugging Face Spaces {sort_type.title()} Rankings (Top 500)',
693
  'y':0.95,
694
  'x':0.5,
695
  'xanchor': 'center',
 
700
  yaxis=dict(
701
  autorange='reversed', # Y์ถ•์„ ๋ฐ˜์ „
702
  tickmode='array',
703
+ ticktext=[str(i) for i in range(1, 501, 20)], # 1๋ถ€ํ„ฐ 400๊นŒ์ง€ 20 ๊ฐ„๊ฒฉ์œผ๋กœ ํ‘œ์‹œ
704
+ tickvals=[i for i in range(1, 501, 20)],
705
+ range=[1, 500] # Y์ถ• ๋ฒ”์œ„๋ฅผ 1๋ถ€ํ„ฐ 400๊นŒ์ง€๋กœ ์„ค์ •
706
  ),
707
  height=800,
708
  showlegend=False,
 
850
  params = {
851
  'sort': 'likes',
852
  'direction': -1,
853
+ 'limit': 500,
854
  'full': 'true'
855
  }
856