AutoDA / app.py
danielpedrini's picture
ok
1b00c1b
Raw History Blame Contribute Delete
787 Bytes
import streamlit as st
import pandas as pd
import pandas_profiling
# make all screen 100% width
st.set_page_config(layout='wide')
# set theme to light
col1, col2, col3 = st.columns([15, 70, 15])
with col1:
st.write('')
with col2:
st.header('Machine Learning App')
st.subheader('Upload your CSV data')
input_file = st.file_uploader('Upload your CSV file', type=['csv'])
if input_file is not None:
df = pd.read_csv(input_file)
df_original = df.copy()
st.dataframe(df.head())
if 'df' not in st.session_state:
st.session_state.df = df
st.session_state.df_original = df_original
st.success('File uploaded successfully')
else:
st.warning('Please upload a CSV file')
with col3:
st.write('')