openfree commited on
Commit
ec99748
ยท
verified ยท
1 Parent(s): 6bff92e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -402,7 +402,7 @@ def get_models_data(progress=gr.Progress()):
402
  fig.add_trace(go.Bar(
403
  x=ids,
404
  y=y_values,
405
- text=[f"Global Rank: {r}<br>Likes: {l:,}<br>Downloads: {d:,}"
406
  for r, l, d in zip(ranks, likes, downloads)],
407
  textposition='auto',
408
  marker_color='rgb(158,202,225)',
@@ -435,7 +435,7 @@ def get_models_data(progress=gr.Progress()):
435
  # HTML ์นด๋“œ ์ƒ์„ฑ
436
  html_content = """
437
  <div style='padding: 20px; background: #f5f5f5;'>
438
- <h2 style='color: #2c3e50;'>Models Global Download Rankings (Top 3000)</h2>
439
  <div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;'>
440
  """
441
 
@@ -455,7 +455,7 @@ def get_models_data(progress=gr.Progress()):
455
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
456
  transition: transform 0.2s;
457
  '>
458
- <h3 style='color: #34495e;'>Global Rank #{rank} - {model_id}</h3>
459
  <p style='color: #2c3e50;'>{title}</p>
460
  <p style='color: #7f8c8d;'>๐Ÿ‘ Likes: {likes:,}</p>
461
  <p style='color: #7f8c8d;'>โฌ‡๏ธ Downloads: {downloads:,}</p>
 
402
  fig.add_trace(go.Bar(
403
  x=ids,
404
  y=y_values,
405
+ text=[f"Rank: {r}<br>Likes: {l:,}<br>Downloads: {d:,}"
406
  for r, l, d in zip(ranks, likes, downloads)],
407
  textposition='auto',
408
  marker_color='rgb(158,202,225)',
 
435
  # HTML ์นด๋“œ ์ƒ์„ฑ
436
  html_content = """
437
  <div style='padding: 20px; background: #f5f5f5;'>
438
+ <h2 style='color: #2c3e50;'>Models ๊ธ€๋กœ๋ฒŒ ์ธ๊ธฐ ์ˆœ์œ„ (Top 3000)</h2>
439
  <div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;'>
440
  """
441
 
 
455
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
456
  transition: transform 0.2s;
457
  '>
458
+ <h3 style='color: #34495e;'>Rank #{rank} - {model_id}</h3>
459
  <p style='color: #2c3e50;'>{title}</p>
460
  <p style='color: #7f8c8d;'>๐Ÿ‘ Likes: {likes:,}</p>
461
  <p style='color: #7f8c8d;'>โฌ‡๏ธ Downloads: {downloads:,}</p>