Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def obtener_color_porcentaje(porcentaje):
|
|
68 |
elif porcentaje >= 40:
|
69 |
return '#F0E68C' # Amarillo anaranjado
|
70 |
elif porcentaje >= 20:
|
71 |
-
return '#
|
72 |
else:
|
73 |
return 'green'
|
74 |
|
@@ -123,12 +123,14 @@ def generar_html_similaridad(porcentajes_similaridad):
|
|
123 |
similaridad_html += "</div>"
|
124 |
return similaridad_html
|
125 |
|
|
|
126 |
iface = gr.Interface(
|
127 |
-
fn=
|
128 |
-
inputs="text",
|
129 |
-
outputs=
|
130 |
-
title="
|
131 |
-
description="Introduce las keywords separadas por comas para encontrar coincidencias en los resultados de búsqueda de Google. Las URLs comunes entre las búsquedas se resaltarán en colores únicos y se mostrará el porcentaje de similaridad
|
|
|
132 |
)
|
133 |
|
134 |
iface.launch()
|
|
|
68 |
elif porcentaje >= 40:
|
69 |
return '#F0E68C' # Amarillo anaranjado
|
70 |
elif porcentaje >= 20:
|
71 |
+
return '#85e985' # Verdoso
|
72 |
else:
|
73 |
return 'green'
|
74 |
|
|
|
123 |
similaridad_html += "</div>"
|
124 |
return similaridad_html
|
125 |
|
126 |
+
|
127 |
iface = gr.Interface(
|
128 |
+
fn=canibalizacion_interface,
|
129 |
+
inputs=["text", "text"],
|
130 |
+
outputs="html",
|
131 |
+
title="<div style='margin:0 auto;text-align:center'><div style='margin:0 auto;text-align:center'><img style='width:100px;display: inline-table;margin-bottom:-10px' src='https://artxeweb.com/media/files/canibal.jpg'><p>Canibal SEO</p></div>",
|
132 |
+
description="<p style='margin-bottom:10px;text-align:center;background: #ffffff; padding: 8px; border-radius: 8px; border-width: 1px; border: solid 1px #e5e7eb;'>Introduce las keywords separadas por comas para encontrar coincidencias en los resultados de búsqueda de Google. Las URLs comunes entre las búsquedas se resaltarán en colores únicos y se mostrará el porcentaje de similaridad.</p>",
|
133 |
+
article="<div style='margin-top:10px'><p style='text-align: center !important; background: #ffffff; padding: 5px 30px; border-radius: 8px; border-width: 1px; border: solid 1px #e5e7eb; width: fit-content; margin: auto;'>Desarrollada por <a style='text-decoration: none !important; color: #e12a31 !important;' href='https://artxeweb.com/'>© Artxe Web</a></p></div>"
|
134 |
)
|
135 |
|
136 |
iface.launch()
|