Spaces:
Running
Running
Update app.py
Browse files
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':
|
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
|
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,
|
703 |
-
tickvals=[i for i in range(1,
|
704 |
-
range=[1,
|
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':
|
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 |
|