Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,13 +9,17 @@ col1, col2, col3 = st.columns((1,1,1))
|
|
9 |
|
10 |
with st.sidebar:
|
11 |
csv = st.file_uploader(label='CSV file to analyse')
|
12 |
-
csv = st.selectbox(label=' Or Choose a Default Dataset', options=['
|
13 |
|
14 |
corr_type = st.selectbox(label='Correlation Type', options=['kendall', 'pearson', 'spearman'])
|
15 |
th = st.slider(label='Correlation Threshold', min_value=0., max_value=1., value=0.15, step=0.01)
|
16 |
|
17 |
but = st.button("Show Correlation Graph",)
|
18 |
|
|
|
|
|
|
|
|
|
19 |
if but == True:
|
20 |
graph_html = display_graph(csv_file=csv, threshold=th, corr_type=corr_type)
|
21 |
st.components.v1.html(graph_html, width=None, height=2000)
|
|
|
9 |
|
10 |
with st.sidebar:
|
11 |
csv = st.file_uploader(label='CSV file to analyse')
|
12 |
+
csv = st.selectbox(label=' Or Choose a Default Dataset', options=['heart.csv', 'flights.csv', 'titanic_cleaned.csv', 'pokemon_cleaned.csv'])
|
13 |
|
14 |
corr_type = st.selectbox(label='Correlation Type', options=['kendall', 'pearson', 'spearman'])
|
15 |
th = st.slider(label='Correlation Threshold', min_value=0., max_value=1., value=0.15, step=0.01)
|
16 |
|
17 |
but = st.button("Show Correlation Graph",)
|
18 |
|
19 |
+
if but == False:
|
20 |
+
graph_html = display_graph(csv_file='heart.csv', threshold=0.15, corr_type='kendall')
|
21 |
+
st.components.v1.html(graph_html, width=None, height=2000)
|
22 |
+
|
23 |
if but == True:
|
24 |
graph_html = display_graph(csv_file=csv, threshold=th, corr_type=corr_type)
|
25 |
st.components.v1.html(graph_html, width=None, height=2000)
|