Kesheratmex commited on
Commit
236efb0
1 Parent(s): 6898310

**Enhance UI with dark gradient theme and refined component styles**

Browse files
Files changed (1) hide show
  1. app.py +19 -12
app.py CHANGED
@@ -1065,12 +1065,19 @@ with gr.Blocks(
1065
  title="KESHERAT AI - Inspecci贸n Inteligente de Turbinas E贸licas",
1066
  theme=gr.themes.Soft(),
1067
  css="""
1068
- /* Estilos globales mejorados */
 
 
 
 
 
1069
  .gradio-container {
1070
  max-width: 1400px !important;
1071
  margin: 0 auto !important;
1072
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
1073
- background-color: #f8f9fa !important;
 
 
1074
  }
1075
 
1076
  /* Professional header with industrial theme */
@@ -1118,14 +1125,14 @@ with gr.Blocks(
1118
  font-weight: 500 !important;
1119
  }
1120
 
1121
- /* Secciones con mejor espaciado */
1122
  .section-container {
1123
- background: white;
1124
  border-radius: 12px;
1125
  padding: 25px;
1126
  margin: 20px 0;
1127
- box-shadow: 0 4px 16px rgba(0,0,0,0.08);
1128
- border: 1px solid #e9ecef;
1129
  }
1130
 
1131
  /* Professional button styling */
@@ -1316,7 +1323,7 @@ with gr.Blocks(
1316
  .file-upload, .upload-area {
1317
  border: 3px dashed #7f8c8d !important;
1318
  border-radius: 15px !important;
1319
- background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
1320
  padding: 40px !important;
1321
  text-align: center !important;
1322
  transition: all 0.3s ease !important;
@@ -1328,9 +1335,9 @@ with gr.Blocks(
1328
  [data-testid*="video"]:hover, [data-testid*="image"]:hover,
1329
  .file-upload:hover, .upload-area:hover {
1330
  border-color: #2c3e50 !important;
1331
- background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%) !important;
1332
  transform: translateY(-2px) !important;
1333
- box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15) !important;
1334
  }
1335
 
1336
  /* Professional upload text styling */
@@ -1393,7 +1400,7 @@ with gr.Blocks(
1393
  with gr.Group(visible=False) as app_group:
1394
  # Secci贸n de instrucciones principales
1395
  gr.HTML("""
1396
- <div style="background: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin: 15px 0;">
1397
  <h3 style="margin-top: 0; color: #2c3e50; font-weight: 600; font-size: 18px;">Instrucciones de Uso</h3>
1398
  <ol style="margin-bottom: 0; padding-left: 20px; color: #2c3e50; font-weight: 400; line-height: 1.6;">
1399
  <li style="margin-bottom: 8px; color: #2c3e50;"><strong style="color: #2c3e50;">Selecciona el tipo de archivo:</strong> Elige entre las pesta帽as "V铆deo" o "Imagen" seg煤n tu contenido</li>
@@ -1442,7 +1449,7 @@ with gr.Blocks(
1442
  # Configuraci贸n tab: classes and sensitivity controls
1443
  with gr.TabItem("Configuraci贸n Avanzada"):
1444
  gr.HTML("""
1445
- <div style="background: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin: 15px 0;">
1446
  <h3 style="margin-top: 0; color: #2c3e50; font-weight: 600; font-size: 18px;">Personalizaci贸n de Sensibilidad</h3>
1447
  <p style="margin-bottom: 0; color: #2c3e50; font-weight: 400; line-height: 1.6;">
1448
  Ajusta estos valores para controlar qu茅 tan sensible es la detecci贸n para cada tipo de defecto.
@@ -1455,7 +1462,7 @@ with gr.Blocks(
1455
  with gr.Row():
1456
  with gr.Column():
1457
  gr.HTML("""
1458
- <div style="background: #ffffff; padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #e0e0e0;">
1459
  <h4 style="margin-top: 0; color: #2c3e50; font-weight: 600; font-size: 16px;">Controles de Sensibilidad</h4>
1460
  <p style="color: #2c3e50; margin-bottom: 0; font-size: 14px; font-weight: 400;">
1461
  Los cambios se aplican autom谩ticamente. Valores recomendados para principiantes est谩n preseleccionados.
 
1065
  title="KESHERAT AI - Inspecci贸n Inteligente de Turbinas E贸licas",
1066
  theme=gr.themes.Soft(),
1067
  css="""
1068
+ /* Estilos globales con fondo oscuro profesional */
1069
+ body, html {
1070
+ background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
1071
+ min-height: 100vh !important;
1072
+ }
1073
+
1074
  .gradio-container {
1075
  max-width: 1400px !important;
1076
  margin: 0 auto !important;
1077
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
1078
+ background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
1079
+ min-height: 100vh !important;
1080
+ padding: 20px !important;
1081
  }
1082
 
1083
  /* Professional header with industrial theme */
 
1125
  font-weight: 500 !important;
1126
  }
1127
 
1128
+ /* Secciones con mejor espaciado y contraste */
1129
  .section-container {
1130
+ background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
1131
  border-radius: 12px;
1132
  padding: 25px;
1133
  margin: 20px 0;
1134
+ box-shadow: 0 6px 20px rgba(0,0,0,0.3);
1135
+ border: 1px solid #95a5a6;
1136
  }
1137
 
1138
  /* Professional button styling */
 
1323
  .file-upload, .upload-area {
1324
  border: 3px dashed #7f8c8d !important;
1325
  border-radius: 15px !important;
1326
+ background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%) !important;
1327
  padding: 40px !important;
1328
  text-align: center !important;
1329
  transition: all 0.3s ease !important;
 
1335
  [data-testid*="video"]:hover, [data-testid*="image"]:hover,
1336
  .file-upload:hover, .upload-area:hover {
1337
  border-color: #2c3e50 !important;
1338
+ background: linear-gradient(135deg, #d5dbdb 0%, #95a5a6 100%) !important;
1339
  transform: translateY(-2px) !important;
1340
+ box-shadow: 0 8px 25px rgba(44, 62, 80, 0.25) !important;
1341
  }
1342
 
1343
  /* Professional upload text styling */
 
1400
  with gr.Group(visible=False) as app_group:
1401
  # Secci贸n de instrucciones principales
1402
  gr.HTML("""
1403
+ <div style="background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%); border: 1px solid #95a5a6; border-radius: 8px; padding: 20px; margin: 15px 0;">
1404
  <h3 style="margin-top: 0; color: #2c3e50; font-weight: 600; font-size: 18px;">Instrucciones de Uso</h3>
1405
  <ol style="margin-bottom: 0; padding-left: 20px; color: #2c3e50; font-weight: 400; line-height: 1.6;">
1406
  <li style="margin-bottom: 8px; color: #2c3e50;"><strong style="color: #2c3e50;">Selecciona el tipo de archivo:</strong> Elige entre las pesta帽as "V铆deo" o "Imagen" seg煤n tu contenido</li>
 
1449
  # Configuraci贸n tab: classes and sensitivity controls
1450
  with gr.TabItem("Configuraci贸n Avanzada"):
1451
  gr.HTML("""
1452
+ <div style="background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%); border: 1px solid #95a5a6; border-radius: 8px; padding: 20px; margin: 15px 0;">
1453
  <h3 style="margin-top: 0; color: #2c3e50; font-weight: 600; font-size: 18px;">Personalizaci贸n de Sensibilidad</h3>
1454
  <p style="margin-bottom: 0; color: #2c3e50; font-weight: 400; line-height: 1.6;">
1455
  Ajusta estos valores para controlar qu茅 tan sensible es la detecci贸n para cada tipo de defecto.
 
1462
  with gr.Row():
1463
  with gr.Column():
1464
  gr.HTML("""
1465
+ <div style="background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%); padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #95a5a6;">
1466
  <h4 style="margin-top: 0; color: #2c3e50; font-weight: 600; font-size: 16px;">Controles de Sensibilidad</h4>
1467
  <p style="color: #2c3e50; margin-bottom: 0; font-size: 14px; font-weight: 400;">
1468
  Los cambios se aplican autom谩ticamente. Valores recomendados para principiantes est谩n preseleccionados.