Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -263,7 +263,6 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
263 |
# AI Rating 정보 가져오기
|
264 |
rating_info = get_rating_info(item, index)
|
265 |
|
266 |
-
|
267 |
# 카드 타입별 그라데이션 설정
|
268 |
if card_type == "space":
|
269 |
gradient_colors = """
|
@@ -276,12 +275,6 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
276 |
background-size: cover;
|
277 |
background-position: center;
|
278 |
"""
|
279 |
-
content_bg = f"""
|
280 |
-
background: linear-gradient(135deg, {gradient_colors});
|
281 |
-
backdrop-filter: blur(10px);
|
282 |
-
"""
|
283 |
-
type_icon = "🎯"
|
284 |
-
type_label = "SPACE"
|
285 |
elif card_type == "model":
|
286 |
gradient_colors = """
|
287 |
rgba(110, 142, 251, 0.7), /* 모델 블루 */
|
@@ -292,12 +285,6 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
292 |
background: linear-gradient(135deg, #6e8efb, #4a6cf7);
|
293 |
padding: 15px;
|
294 |
"""
|
295 |
-
content_bg = f"""
|
296 |
-
background: linear-gradient(135deg, {gradient_colors});
|
297 |
-
backdrop-filter: blur(10px);
|
298 |
-
"""
|
299 |
-
type_icon = "🤖"
|
300 |
-
type_label = "MODEL"
|
301 |
else: # dataset
|
302 |
gradient_colors = """
|
303 |
rgba(255, 107, 107, 0.7), /* 데이터셋 레드 */
|
@@ -308,41 +295,10 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
308 |
background: linear-gradient(135deg, #ff6b6b, #ff8787);
|
309 |
padding: 15px;
|
310 |
"""
|
311 |
-
content_bg = f"""
|
312 |
-
background: linear-gradient(135deg, {gradient_colors});
|
313 |
-
backdrop-filter: blur(10px);
|
314 |
-
"""
|
315 |
-
type_icon = "📊"
|
316 |
-
type_label = "DATASET"
|
317 |
-
|
318 |
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
# 하드웨어 정보 HTML
|
324 |
-
hardware_info = f"""
|
325 |
-
<div style='
|
326 |
-
margin-top: 15px;
|
327 |
-
padding: 10px;
|
328 |
-
background: rgba(255,255,255,0.3);
|
329 |
-
border-radius: 10px;
|
330 |
-
font-size: 0.9em;'>
|
331 |
-
<div style='
|
332 |
-
display: grid;
|
333 |
-
grid-template-columns: repeat(3, 1fr);
|
334 |
-
gap: 10px;'>
|
335 |
-
<div style='color: #444;'>
|
336 |
-
<span style='margin-right: 5px;'>💻</span> CPU: {cpu_info}
|
337 |
-
</div>
|
338 |
-
<div style='color: #444;'>
|
339 |
-
<span style='margin-right: 5px;'>🎮</span> GPU: {gpu_info}
|
340 |
-
</div>
|
341 |
-
<div style='color: #444;'>
|
342 |
-
<span style='margin-right: 5px;'>🛠️</span> SDK: {sdk}
|
343 |
-
</div>
|
344 |
-
</div>
|
345 |
-
</div>
|
346 |
"""
|
347 |
|
348 |
# 태그 표시 (models와 datasets용)
|
@@ -468,7 +424,7 @@ def get_card(item: dict, index: int, card_type: str = "space") -> str:
|
|
468 |
</div>
|
469 |
</div>
|
470 |
|
471 |
-
{
|
472 |
</div>
|
473 |
</div>
|
474 |
"""
|
|
|
263 |
# AI Rating 정보 가져오기
|
264 |
rating_info = get_rating_info(item, index)
|
265 |
|
|
|
266 |
# 카드 타입별 그라데이션 설정
|
267 |
if card_type == "space":
|
268 |
gradient_colors = """
|
|
|
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 |
background: linear-gradient(135deg, #6e8efb, #4a6cf7);
|
286 |
padding: 15px;
|
287 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
else: # dataset
|
289 |
gradient_colors = """
|
290 |
rgba(255, 107, 107, 0.7), /* 데이터셋 레드 */
|
|
|
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용)
|
|
|
424 |
</div>
|
425 |
</div>
|
426 |
|
427 |
+
{rating_info}
|
428 |
</div>
|
429 |
</div>
|
430 |
"""
|