Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -275,6 +275,8 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
275 |
background-size: cover;
|
276 |
background-position: center;
|
277 |
"""
|
|
|
|
|
278 |
elif card_type == "model":
|
279 |
gradient_colors = """
|
280 |
rgba(110, 142, 251, 0.7), /* 모델 블루 */
|
@@ -285,6 +287,8 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
285 |
background: linear-gradient(135deg, #6e8efb, #4a6cf7);
|
286 |
padding: 15px;
|
287 |
"""
|
|
|
|
|
288 |
else: # dataset
|
289 |
gradient_colors = """
|
290 |
rgba(255, 107, 107, 0.7), /* 데이터셋 레드 */
|
@@ -295,12 +299,15 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
295 |
background: linear-gradient(135deg, #ff6b6b, #ff8787);
|
296 |
padding: 15px;
|
297 |
"""
|
|
|
|
|
298 |
|
299 |
content_bg = f"""
|
300 |
background: linear-gradient(135deg, {gradient_colors});
|
301 |
backdrop-filter: blur(10px);
|
302 |
"""
|
303 |
|
|
|
304 |
# 태그 표시 (models와 datasets용)
|
305 |
tags_html = ""
|
306 |
if card_type != "space":
|
|
|
275 |
background-size: cover;
|
276 |
background-position: center;
|
277 |
"""
|
278 |
+
type_icon = "🎯"
|
279 |
+
type_label = "SPACE"
|
280 |
elif card_type == "model":
|
281 |
gradient_colors = """
|
282 |
rgba(110, 142, 251, 0.7), /* 모델 블루 */
|
|
|
287 |
background: linear-gradient(135deg, #6e8efb, #4a6cf7);
|
288 |
padding: 15px;
|
289 |
"""
|
290 |
+
type_icon = "🤖"
|
291 |
+
type_label = "MODEL"
|
292 |
else: # dataset
|
293 |
gradient_colors = """
|
294 |
rgba(255, 107, 107, 0.7), /* 데이터셋 레드 */
|
|
|
299 |
background: linear-gradient(135deg, #ff6b6b, #ff8787);
|
300 |
padding: 15px;
|
301 |
"""
|
302 |
+
type_icon = "📊"
|
303 |
+
type_label = "DATASET"
|
304 |
|
305 |
content_bg = f"""
|
306 |
background: linear-gradient(135deg, {gradient_colors});
|
307 |
backdrop-filter: blur(10px);
|
308 |
"""
|
309 |
|
310 |
+
|
311 |
# 태그 표시 (models와 datasets용)
|
312 |
tags_html = ""
|
313 |
if card_type != "space":
|