openfree commited on
Commit
b9747e7
Β·
verified Β·
1 Parent(s): 56a590f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
app.py CHANGED
@@ -15,10 +15,12 @@ target_models = {
15
  "LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct": "https://huggingface.co/LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct",
16
  "ginipick/flux-lora-eric-cat": "https://huggingface.co/ginipick/flux-lora-eric-cat",
17
  "seawolf2357/flux-lora-car-rolls-royce": "https://huggingface.co/seawolf2357/flux-lora-car-rolls-royce",
18
-
19
  "moreh/Llama-3-Motif-102B-Instruct": "https://huggingface.co/moreh/Llama-3-Motif-102B-Instruct",
20
- "moreh/Llama-3-Motif-102B": "https://huggingface.co/moreh/Llama-3-Motif-102B",
21
- "Samsung/TinyClick": "https://huggingface.co/Samsung/TinyClick",
 
 
 
22
 
23
  "Saxo/Linkbricks-Horizon-AI-Korean-Gemma-2-sft-dpo-27B": "https://huggingface.co/Saxo/Linkbricks-Horizon-AI-Korean-Gemma-2-sft-dpo-27B",
24
  "AALF/gemma-2-27b-it-SimPO-37K": "https://huggingface.co/AALF/gemma-2-27b-it-SimPO-37K",
@@ -653,10 +655,13 @@ def get_spaces_data(sort_type="trending", progress=gr.Progress()):
653
  likes = [space.get('likes', 0) for space in spaces]
654
  titles = [space.get('cardData', {}).get('title') or space.get('title', 'No Title') for space in spaces]
655
 
656
- # λ§‰λŒ€ κ·Έλž˜ν”„ 생성 (YμΆ• κ°’ 계산 μˆ˜μ •)
 
 
 
657
  fig.add_trace(go.Bar(
658
  x=ids,
659
- y=ranks, # 직접 rank κ°’ μ‚¬μš©
660
  text=[f"Rank: {r}<br>Title: {t}<br>Likes: {l}"
661
  for r, t, l in zip(ranks, titles, likes)],
662
  textposition='auto',
@@ -675,11 +680,12 @@ def get_spaces_data(sort_type="trending", progress=gr.Progress()):
675
  xaxis_title='Space ID',
676
  yaxis_title='Rank',
677
  yaxis=dict(
678
- autorange='reversed', # YμΆ• λ°˜μ „
679
  tickmode='linear',
680
  tick0=0,
681
  dtick=20,
682
- range=[0, 400]
 
 
683
  ),
684
  height=800,
685
  showlegend=False,
 
15
  "LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct": "https://huggingface.co/LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct",
16
  "ginipick/flux-lora-eric-cat": "https://huggingface.co/ginipick/flux-lora-eric-cat",
17
  "seawolf2357/flux-lora-car-rolls-royce": "https://huggingface.co/seawolf2357/flux-lora-car-rolls-royce",
 
18
  "moreh/Llama-3-Motif-102B-Instruct": "https://huggingface.co/moreh/Llama-3-Motif-102B-Instruct",
19
+
20
+
21
+ "NCSOFT/VARCO-VISION-14B": "https://huggingface.co/NCSOFT/VARCO-VISION-14B",
22
+ "NCSOFT/Llama-VARCO-8B-Instruct": "https://huggingface.co/NCSOFT/Llama-VARCO-8B-Instruct",
23
+ "NCSOFT/VARCO-VISION-14B-HF": "https://huggingface.co/NCSOFT/VARCO-VISION-14B-HF",
24
 
25
  "Saxo/Linkbricks-Horizon-AI-Korean-Gemma-2-sft-dpo-27B": "https://huggingface.co/Saxo/Linkbricks-Horizon-AI-Korean-Gemma-2-sft-dpo-27B",
26
  "AALF/gemma-2-27b-it-SimPO-37K": "https://huggingface.co/AALF/gemma-2-27b-it-SimPO-37K",
 
655
  likes = [space.get('likes', 0) for space in spaces]
656
  titles = [space.get('cardData', {}).get('title') or space.get('title', 'No Title') for space in spaces]
657
 
658
+ # λ§‰λŒ€ 길이λ₯Ό μˆœμœ„μ˜ μ—­μˆ˜λ‘œ 계산 (높은 μˆœμœ„ = κΈ΄ λ§‰λŒ€)
659
+ y_values = [400 - r + 1 for r in ranks]
660
+
661
+ # λ§‰λŒ€ κ·Έλž˜ν”„ 생성
662
  fig.add_trace(go.Bar(
663
  x=ids,
664
+ y=y_values, # λ³€ν™˜λœ Yκ°’ μ‚¬μš©
665
  text=[f"Rank: {r}<br>Title: {t}<br>Likes: {l}"
666
  for r, t, l in zip(ranks, titles, likes)],
667
  textposition='auto',
 
680
  xaxis_title='Space ID',
681
  yaxis_title='Rank',
682
  yaxis=dict(
 
683
  tickmode='linear',
684
  tick0=0,
685
  dtick=20,
686
+ range=[0, 400],
687
+ ticktext=[str(400-i) for i in range(0, 401, 20)], # μˆœμœ„ λ ˆμ΄λΈ”
688
+ tickvals=[i for i in range(0, 401, 20)], # 눈금 μœ„μΉ˜
689
  ),
690
  height=800,
691
  showlegend=False,