Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -167,7 +167,23 @@ df2 = df_Ifc
|
|
| 167 |
|
| 168 |
# Inicializar un nuevo DataFrame para resumir los resultados
|
| 169 |
resumen = pd.DataFrame(columns=['Entidad', 'Entidad_existe_si/no', 'Atributos', 'Atributos_existe_si/no'])
|
| 170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
|
| 172 |
# Crear un bot贸n de validaci贸n
|
| 173 |
if st.button("**VALIDAR IFC**"):
|
|
|
|
| 167 |
|
| 168 |
# Inicializar un nuevo DataFrame para resumir los resultados
|
| 169 |
resumen = pd.DataFrame(columns=['Entidad', 'Entidad_existe_si/no', 'Atributos', 'Atributos_existe_si/no'])
|
| 170 |
+
#color del boton validar
|
| 171 |
+
def ChangeButtonColour(widget_label, font_color, background_color='transparent'):
|
| 172 |
+
htmlstr = f"""
|
| 173 |
+
<script>
|
| 174 |
+
var elements = window.parent.document.querySelectorAll('button');
|
| 175 |
+
for (var i = 0; i < elements.length; ++i) {{
|
| 176 |
+
if (elements[i].innerText == '{widget_label}') {{
|
| 177 |
+
elements[i].style.color ='{font_color}';
|
| 178 |
+
elements[i].style.background = '{background_color}'
|
| 179 |
+
}}
|
| 180 |
+
}}
|
| 181 |
+
</script>
|
| 182 |
+
"""
|
| 183 |
+
components.html(f"{htmlstr}", height=0, width=0)
|
| 184 |
+
|
| 185 |
+
ChangeButtonColour('Validar Ifc', '#ffffff', '#ff9317') # button txt to find, colour to assign
|
| 186 |
+
|
| 187 |
|
| 188 |
# Crear un bot贸n de validaci贸n
|
| 189 |
if st.button("**VALIDAR IFC**"):
|