Spaces:
Sleeping
Sleeping
GMARTINEZMILLA
commited on
Commit
•
89cddd0
1
Parent(s):
7a66fe8
feat: updated website
Browse files
app.py
CHANGED
@@ -13,11 +13,6 @@ from utils import recomienda_tfid
|
|
13 |
# Page configuration
|
14 |
st.set_page_config(page_title="DeepInsightz", page_icon=":bar_chart:", layout="wide")
|
15 |
|
16 |
-
# Navigation menu
|
17 |
-
with st.sidebar:
|
18 |
-
st.sidebar.title("DeepInsightz")
|
19 |
-
page = st.sidebar.selectbox("Select the tool you want to use", ["Summary", "Customer Analysis", "Articles Recommendations"])
|
20 |
-
|
21 |
# Custom CSS for dynamic theme styling
|
22 |
# Streamlit detects light and dark mode automatically via the user's settings in Hugging Face Spaces
|
23 |
if st.get_option("theme.base") == "dark":
|
@@ -62,6 +57,11 @@ st.markdown(f"""
|
|
62 |
</style>
|
63 |
""", unsafe_allow_html=True)
|
64 |
|
|
|
|
|
|
|
|
|
|
|
65 |
# Load CSV files at the top
|
66 |
df = pd.read_csv("df_clean.csv")
|
67 |
nombres_proveedores = pd.read_csv("nombres_proveedores.csv", sep=';')
|
@@ -186,13 +186,7 @@ if page == "Summary":
|
|
186 |
st.metric(label="Customers Analysed", value="3.000")
|
187 |
st.metric(label="Unique Products Sold", value="10.702")
|
188 |
st.metric(label="Total Sales Instances", value="764.396")
|
189 |
-
|
190 |
-
st.markdown('#### Clustering Details')
|
191 |
-
|
192 |
-
# Horizontal layout for clustering metrics similar to "General Data Information"
|
193 |
-
st.metric(label="Silhouette Score", value="0.57744")
|
194 |
-
st.metric(label="Calinski-Harabasz", value="422.98")
|
195 |
-
st.metric(label="Davies-Bouldin", value="0.63446")
|
196 |
|
197 |
|
198 |
# Middle Column (White): 3D Cluster Model and Bar Chart
|
|
|
13 |
# Page configuration
|
14 |
st.set_page_config(page_title="DeepInsightz", page_icon=":bar_chart:", layout="wide")
|
15 |
|
|
|
|
|
|
|
|
|
|
|
16 |
# Custom CSS for dynamic theme styling
|
17 |
# Streamlit detects light and dark mode automatically via the user's settings in Hugging Face Spaces
|
18 |
if st.get_option("theme.base") == "dark":
|
|
|
57 |
</style>
|
58 |
""", unsafe_allow_html=True)
|
59 |
|
60 |
+
# Navigation menu
|
61 |
+
with st.sidebar:
|
62 |
+
st.sidebar.title("DeepInsightz")
|
63 |
+
page = st.sidebar.selectbox("Select the tool you want to use", ["Summary", "Customer Analysis", "Articles Recommendations"])
|
64 |
+
|
65 |
# Load CSV files at the top
|
66 |
df = pd.read_csv("df_clean.csv")
|
67 |
nombres_proveedores = pd.read_csv("nombres_proveedores.csv", sep=';')
|
|
|
186 |
st.metric(label="Customers Analysed", value="3.000")
|
187 |
st.metric(label="Unique Products Sold", value="10.702")
|
188 |
st.metric(label="Total Sales Instances", value="764.396")
|
189 |
+
st.metric(label="Range of Dates", value="2021-2023")
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
|
191 |
|
192 |
# Middle Column (White): 3D Cluster Model and Bar Chart
|