From 5a664243fd050c6c5610579531f02b2c0f8b884a Mon Sep 17 00:00:00 2001 From: bastien ollier Date: Wed, 5 Jun 2024 08:28:30 +0200 Subject: [PATCH] initial commit --- frontend/.streamlit/config.toml | 2 ++ frontend/main.py | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 frontend/.streamlit/config.toml create mode 100644 frontend/main.py diff --git a/frontend/.streamlit/config.toml b/frontend/.streamlit/config.toml new file mode 100644 index 0000000..977c886 --- /dev/null +++ b/frontend/.streamlit/config.toml @@ -0,0 +1,2 @@ +[server] +enableXsrfProtection = false diff --git a/frontend/main.py b/frontend/main.py new file mode 100644 index 0000000..b51c053 --- /dev/null +++ b/frontend/main.py @@ -0,0 +1,10 @@ +import pandas as pd +import streamlit as st + +st.title("Hello world!") + +uploaded_file = st.file_uploader("Choose a file") +if uploaded_file is not None: + df = pd.read_csv(uploaded_file) + st.write(df.head(10)) + st.write(df.tail(10))