Spaces:
Sleeping
Sleeping
Delete pages/4_Admin_Panel.py
Browse files- pages/4_Admin_Panel.py +0 -19
pages/4_Admin_Panel.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
| 1 |
-
import streamlit as st
|
| 2 |
-
import pandas as pd
|
| 3 |
-
|
| 4 |
-
st.title("Administrative Panel")
|
| 5 |
-
st.warning("Restricted Access Authorized Users Only")
|
| 6 |
-
|
| 7 |
-
uploaded_file = st.file_uploader(
|
| 8 |
-
"Upload New Loan Dataset (CSV)",
|
| 9 |
-
type=["csv"]
|
| 10 |
-
)
|
| 11 |
-
|
| 12 |
-
if uploaded_file:
|
| 13 |
-
df = pd.read_csv(uploaded_file)
|
| 14 |
-
st.success("Dataset uploaded successfully")
|
| 15 |
-
st.dataframe(df.head())
|
| 16 |
-
|
| 17 |
-
if st.button("Persist Dataset"):
|
| 18 |
-
df.to_csv("data/loan_applications.csv", index=False)
|
| 19 |
-
st.success("Dataset saved and ready for retraining")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|