Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import base64
|
|
12 |
from io import BytesIO
|
13 |
import sys
|
14 |
import pydeck as pdk
|
15 |
-
from ydata_profiling import ProfileReport
|
16 |
import streamlit.components.v1 as components
|
17 |
|
18 |
# Print the Python version
|
@@ -292,8 +292,6 @@ with tab3:
|
|
292 |
else:
|
293 |
st.warning(f"**Dados insuficientes para inferência do valor. Mínimo necessário:** {k_threshold}")
|
294 |
|
295 |
-
config = ProfilingConfiguration()
|
296 |
-
config.html.style.primary_color = '#FFD700'
|
297 |
|
298 |
# Generate the profile report
|
299 |
with st.spinner('Carregando análise...'):
|
@@ -301,7 +299,7 @@ with tab3:
|
|
301 |
profile_html = profile.to_html()
|
302 |
|
303 |
# Replace English text with Portuguese
|
304 |
-
profile_html = profile_html.
|
305 |
profile_html = profile_html.replace("Overview", "Visão geral")
|
306 |
profile_html = profile_html.replace("Alerts", "Alertas")
|
307 |
profile_html = profile_html.replace("Reproduction", "Reprodução")
|
|
|
12 |
from io import BytesIO
|
13 |
import sys
|
14 |
import pydeck as pdk
|
15 |
+
from ydata_profiling import ProfileReport
|
16 |
import streamlit.components.v1 as components
|
17 |
|
18 |
# Print the Python version
|
|
|
292 |
else:
|
293 |
st.warning(f"**Dados insuficientes para inferência do valor. Mínimo necessário:** {k_threshold}")
|
294 |
|
|
|
|
|
295 |
|
296 |
# Generate the profile report
|
297 |
with st.spinner('Carregando análise...'):
|
|
|
299 |
profile_html = profile.to_html()
|
300 |
|
301 |
# Replace English text with Portuguese
|
302 |
+
profile_html = profile_html.config.html.style.primary_color = '#FFD700'
|
303 |
profile_html = profile_html.replace("Overview", "Visão geral")
|
304 |
profile_html = profile_html.replace("Alerts", "Alertas")
|
305 |
profile_html = profile_html.replace("Reproduction", "Reprodução")
|