Lukeetah commited on
Commit
bbf7f6c
·
verified ·
1 Parent(s): 82726ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -31
app.py CHANGED
@@ -10,20 +10,15 @@ custom_css = """
10
 
11
  /* Variables globales */
12
  :root {
13
- --primary-color: #7c3aed; /* Violeta intenso */
14
- --primary-hover: #6d28d9; /* Violeta más oscuro al hacer hover */
15
-
16
- --secondary-color: #f1f5f9; /* Gris muy claro para fondos (más neutro que blanco puro) */
17
-
18
- --text-primary: #1e293b; /* Azul grisáceo oscuro, re-contrastante */
19
- --text-secondary: #334155; /* Gris azulado, claro pero firme */
20
-
21
- --border-color: #cbd5e1; /* Gris medio, elegante y suave para bordes */
22
-
23
- --success-color: #10b981; /* Verde esmeralda */
24
- --error-color: #ef4444; /* Rojo coral */
25
- --warning-color: #f59e0b; /* Mostaza vibrante */
26
-
27
  --gradient-bg: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
28
  }
29
 
@@ -256,24 +251,19 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft(), title="🕸️ Web Scrape
256
  )
257
 
258
  gr.HTML("""
259
- <div class="app-header" style="margin-top: 1rem; background-color: #e0f2ff; color: #1e293b; padding: 1.5rem; border-radius: 12px; border: 1px solid #b6defc; font-size: 0.95rem; line-height: 1.6; font-weight: 500;">
260
- <div style="margin-bottom: 0.75rem; font-weight: 700; color: #0369a1;">
261
- 🔹 Información de uso
262
- <div class="app-header" style="margin-top: 1rem; color: #1e293b; font-size: 0.95rem; line-height: 1.6; background-color: #e0f2fe; border-radius: 10px; padding: 1rem; border: 1px solid #bae6fd;">
263
- <div style="margin-bottom: 0.5rem; color: #2563eb; font-weight: bold;">
264
- <span style="color: #3b82f6;">🔷 Información de uso</span>
265
- </div>
266
-
267
- <div style="padding-left: 1rem;">
268
- <div><strong style="color: #0f172a;">URLs flexibles:</strong> <span style="color: #334155;">Intenta normalizar URLs incompletas (e.g., añadiendo <code>https://</code>).</span></div>
269
- <div><strong style="color: #0f172a;">Detección de contenido:</strong> <span style="color: #334155;">Identifica si la URL es una imagen o una página web.</span></div>
270
- <div><strong style="color: #0f172a;">Optimizado para Copilot:</strong> <span style="color: #334155;">Los archivos generados buscan compatibilidad.</span></div>
271
- <div><strong style="color: #0f172a;">Formatos:</strong> <span style="color: #334155;">PDF (preserva estructura visual si es texto o imagen directa) y TXT (texto plano).</span></div>
272
- <div><strong style="color: #0f172a;">Codificación:</strong> <span style="color: #334155;">UTF-8 para TXT. Soporte Unicode para PDF con fuentes DejaVu (si están disponibles en el servidor) o Arial.</span></div>
273
- <div><strong style="color: #0f172a;">Fuente PDF:</strong> <span style="color: #334155;">Si el archivo <code>DejaVuSansCondensed.ttf</code> está en el servidor o en una carpeta <code>fonts</code>, se usará para mejor soporte Unicode.</span></div>
274
- </div>
275
 
276
- <div style="margin-top: 0.5rem; color: #334155;">Desarrollado para facilitar la integración con herramientas de IA.</div>
277
  </div>
278
  """)
279
 
 
10
 
11
  /* Variables globales */
12
  :root {
13
+ --primary-color: #7c3aed;
14
+ --primary-hover: #6d28d9;
15
+ --secondary-color: #f1f5f9;
16
+ --text-primary: #0f172a; /* texto principal fuerte */
17
+ --text-secondary: #475569; /* texto gris oscuro */
18
+ --border-color: #cbd5e1;
19
+ --success-color: #10b981;
20
+ --error-color: #ef4444;
21
+ --warning-color: #f59e0b;
 
 
 
 
 
22
  --gradient-bg: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
23
  }
24
 
 
251
  )
252
 
253
  gr.HTML("""
254
+ <div style="background-color: var(--secondary-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; max-width: 720px; margin: auto; font-family: 'Segoe UI', sans-serif; color: var(--text-primary);">
255
+ <h3 style="color: var(--primary-color); font-weight: 700; margin-bottom: 1rem;">🔷 Información de uso</h3>
256
+
257
+ <ul style="list-style: none; padding-left: 0; line-height: 1.7;">
258
+ <li><strong>URLs flexibles:</strong> <span style="color: var(--text-secondary);">Intenta normalizar URLs incompletas (e.g., añadiendo <code>https://</code>).</span></li>
259
+ <li><strong>Detección de contenido:</strong> <span style="color: var(--text-secondary);">Identifica si la URL es una imagen o una página web.</span></li>
260
+ <li><strong>Optimizado para Copilot:</strong> <span style="color: var(--text-secondary);">Los archivos generados buscan compatibilidad.</span></li>
261
+ <li><strong>Formatos:</strong> <span style="color: var(--text-secondary);">PDF (preserva estructura visual si es texto o imagen directa) y TXT (texto plano).</span></li>
262
+ <li><strong>Codificación:</strong> <span style="color: var(--text-secondary);">UTF-8 para TXT. Soporte Unicode para PDF con fuentes DejaVu o Arial.</span></li>
263
+ <li><strong>Fuente PDF:</strong> <span style="color: var(--text-secondary);">Si el archivo <code>DejaVuSansCondensed.ttf</code> está en el servidor o en una carpeta <code>fonts</code>, se usará para mejor soporte Unicode.</span></li>
264
+ </ul>
 
 
 
 
 
265
 
266
+ <p style="margin-top: 1rem; color: var(--text-secondary);">Desarrollado para facilitar la integración con herramientas de IA.</p>
267
  </div>
268
  """)
269