thov commited on
Commit
341f5b8
1 Parent(s): 3ff951d

add threshold and organization layout

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -1,10 +1,21 @@
1
  import streamlit as st
2
  from utils import display_graph
3
 
 
 
4
  st.title("Graph Correlation")
5
 
6
- csv = st.file_uploader(label='CSV file to analyse', )
 
 
 
 
 
 
 
 
7
 
8
- if st.button("Cliquez-moi"):
9
- graph_html = display_graph(csv_file=csv)
 
10
  st.components.v1.html(graph_html, width=None, height=1000)
 
1
  import streamlit as st
2
  from utils import display_graph
3
 
4
+ st.set_page_config(layout="wide")
5
+
6
  st.title("Graph Correlation")
7
 
8
+ col1, col2 = st.columns((1,1))
9
+
10
+ with col1:
11
+ csv = st.file_uploader(label='CSV file to analyse')
12
+
13
+ with col2:
14
+ th = st.slider(label='Correlation Threshold', min_value=0., max_value=1., value=0.1, step=0.01)
15
+ but = st.button("Show Correlation Graph")
16
+
17
 
18
+ if but == True:
19
+ print(but)
20
+ graph_html = display_graph(csv_file=csv, threshold=th)
21
  st.components.v1.html(graph_html, width=None, height=1000)