fschwartzer commited on
Commit
8851c28
·
verified ·
1 Parent(s): 53b9db6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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, ProfilingConfiguration
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.replace('blue', 'gold')
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")