Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,20 +10,15 @@ custom_css = """
|
|
| 10 |
|
| 11 |
/* Variables globales */
|
| 12 |
:root {
|
| 13 |
-
--primary-color: #7c3aed;
|
| 14 |
-
--primary-hover: #6d28d9;
|
| 15 |
-
|
| 16 |
-
--
|
| 17 |
-
|
| 18 |
-
--
|
| 19 |
-
--
|
| 20 |
-
|
| 21 |
-
--
|
| 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 |
-
|
| 260 |
-
<
|
| 261 |
-
|
| 262 |
-
<
|
| 263 |
-
|
| 264 |
-
<span style="color:
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
<
|
| 269 |
-
|
| 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 |
-
<
|
| 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 |
|