yilmazmusa-ml commited on
Commit
2166dd0
·
verified ·
1 Parent(s): b9ca912

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -268,21 +268,21 @@ def check_model(model_name, base_model=None, user_info=None):
268
 
269
  # Sonuçları biçimlendir - Daha koyu arka plan ve daha iyi kontrast
270
  result = f"""
271
- <div style='color: #000; background-color: #d1ecf1; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-left: 5px solid #0c5460;'>
272
- <h3 style='color: #000; margin-top: 0;'>Model Kontrol Sonuçları</h3>
273
- <p><b>Model Adı:</b> {model_name}</p>
274
- <p><b>Model Durumu:</b> <span style='color: #155724; font-weight: bold;'>✅ Erişilebilir</span></p>
275
- <p><b>Model Türü:</b> {model_type}</p>
276
- <p><b>Model Kartı:</b> <span style='color: {"#155724" if has_valid_card else "#721c24"}; font-weight: bold;'>{card_status}</span> {card_message}</p>
277
- <p><b>Detaylar:</b> {type_message}</p>
278
-
279
- <h4 style='color: #000; border-top: 1px solid #bee5eb; padding-top: 10px; margin-top: 15px;'>Kullanıcı Bilgileri:</h4>
280
- {user_info_html}
281
  """
282
 
283
  # Eğer base_model belirtilmişse, basit bir kontrol yapalım
284
  if base_model:
285
- result += f"<p><b>Belirtilen Base Model:</b> {base_model}</p>"
286
 
287
  result += "</div>"
288
 
 
268
 
269
  # Sonuçları biçimlendir - Daha koyu arka plan ve daha iyi kontrast
270
  result = f"""
271
+ <div style='color: #000; background-color: #c2e9f0; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-left: 5px solid #0c5460;'>
272
+ <h3 style='color: #0c5460; margin-top: 0; font-size: 18px; font-weight: 700;'>Model Kontrol Sonuçları</h3>
273
+ <p style='color: #000; font-weight: 500;'><b style='color: #0c5460;'>Model Adı:</b> {model_name}</p>
274
+ <p style='color: #000; font-weight: 500;'><b style='color: #0c5460;'>Model Durumu:</b> <span style='color: #155724; font-weight: bold;'>✅ Erişilebilir</span></p>
275
+ <p style='color: #000; font-weight: 500;'><b style='color: #0c5460;'>Model Türü:</b> {model_type}</p>
276
+ <p style='color: #000; font-weight: 500;'><b style='color: #0c5460;'>Model Kartı:</b> <span style='color: {"#155724" if has_valid_card else "#721c24"}; font-weight: bold;'>{card_status}</span> {card_message}</p>
277
+ <p style='color: #000; font-weight: 500;'><b style='color: #0c5460;'>Detaylar:</b> {type_message}</p>
278
+
279
+ <h4 style='color: #0c5460; border-top: 1px solid #bee5eb; padding-top: 10px; margin-top: 15px; font-weight: 700;'>Kullanıcı Bilgileri:</h4>
280
+ <p style='color: #000; font-weight: 500;'><b style='color: #0c5460;'>Kullanıcı:</b> {username}</p>
281
  """
282
 
283
  # Eğer base_model belirtilmişse, basit bir kontrol yapalım
284
  if base_model:
285
+ result += f"<p style='color: #000; font-weight: 500;'><b style='color: #0c5460;'>Belirtilen Base Model:</b> {base_model}</p>"
286
 
287
  result += "</div>"
288