Update app.py
Browse files
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"
|
| 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
|
| 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;'>
|
| 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>
|