import streamlit as st from utils import display_graph st.set_page_config(layout="wide") st.title("Graph Correlation") col1, col2 = st.columns((1,1)) with col1: csv = st.file_uploader(label='CSV file to analyse') with col2: th = st.slider(label='Correlation Threshold', min_value=0., max_value=1., value=0.1, step=0.01) but = st.button("Show Correlation Graph") if but == True: print(but) graph_html = display_graph(csv_file=csv, threshold=th) st.components.v1.html(graph_html, width=None, height=1000)