Spaces:
Runtime error
Runtime error
updated cache
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import plotly.express as px
|
|
3 |
import plotly.graph_objects as go
|
4 |
import inspect
|
5 |
|
|
|
6 |
def get_chart_68636849():
|
7 |
import plotly.express as px
|
8 |
import numpy as np
|
@@ -13,7 +14,7 @@ def get_chart_68636849():
|
|
13 |
color_continuous_midpoint=np.average(df['lifeExp'], weights=df['pop']))
|
14 |
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
15 |
|
16 |
-
tab1, tab2 = st.tabs(["
|
17 |
with tab1:
|
18 |
st.plotly_chart(fig, theme="streamlit")
|
19 |
with tab2:
|
|
|
3 |
import plotly.graph_objects as go
|
4 |
import inspect
|
5 |
|
6 |
+
@st.experimental_memo
|
7 |
def get_chart_68636849():
|
8 |
import plotly.express as px
|
9 |
import numpy as np
|
|
|
14 |
color_continuous_midpoint=np.average(df['lifeExp'], weights=df['pop']))
|
15 |
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
16 |
|
17 |
+
tab1, tab2 = st.tabs(["Streamlit theme (default)", "Plotly native theme"])
|
18 |
with tab1:
|
19 |
st.plotly_chart(fig, theme="streamlit")
|
20 |
with tab2:
|