Spaces:
Runtime error
Runtime error
Download app.py from danielpedriniportfolio/AutoDA: direct link, hf CLI and curl.
- Browser
- Download file 787 Bytes
-
https://huggingface.co/spaces/danielpedriniportfolio/AutoDA/resolve/main/app.py
- Command line
-
hf download hf://spaces/danielpedriniportfolio/AutoDA/app.py
-
curl -L -o app.py https://huggingface.co/spaces/danielpedriniportfolio/AutoDA/resolve/main/app.py
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('') |