GMARTINEZMILLA commited on
Commit
ab9c8b0
·
1 Parent(s): 2c1bfb4

feat: generated files

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -1,24 +1,24 @@
1
  import streamlit as st
2
 
3
- # Diseño de la página principal
4
  st.set_page_config(page_title="Customer Insights App", page_icon=":bar_chart:")
5
 
 
6
  st.title("Welcome to Customer Insights App")
7
  st.markdown("""
8
  This app helps businesses analyze customer behaviors and provide personalized recommendations based on purchase history.
9
  Use the tools below to dive deeper into your customer data.
10
  """)
11
 
12
- # Navegación a las otras herramientas
13
- st.markdown("## Available Tools:")
14
- col1, col2 = st.columns(2)
15
-
16
- with col1:
17
- st.markdown("### 🔍 Customer Analysis")
18
- st.write("Analyze customer data to discover patterns and insights.")
19
- st.button("Go to Customer Analysis", on_click=lambda: st.experimental_rerun())
20
 
21
- with col2:
22
- st.markdown("### 📊 Customer Recommendations")
23
- st.write("Generate recommendations based on customer purchase history.")
24
- st.button("Go to Recommendations", on_click=lambda: st.experimental_rerun())
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ # Configuración de la página
4
  st.set_page_config(page_title="Customer Insights App", page_icon=":bar_chart:")
5
 
6
+ # Diseño de la página principal
7
  st.title("Welcome to Customer Insights App")
8
  st.markdown("""
9
  This app helps businesses analyze customer behaviors and provide personalized recommendations based on purchase history.
10
  Use the tools below to dive deeper into your customer data.
11
  """)
12
 
13
+ # Menú de navegación
14
+ page = st.selectbox("Select a page", ["Home", "Customer Analysis", "Customer Recommendations"])
 
 
 
 
 
 
15
 
16
+ if page == "Home":
17
+ st.markdown("## Welcome to the Customer Insights App")
18
+ st.write("Use the dropdown menu to navigate between the different sections.")
19
+ elif page == "Customer Analysis":
20
+ st.write("You have selected **Customer Analysis**.")
21
+ # Aquí puedes incluir el contenido de la página 'customer_analysis.py'
22
+ elif page == "Customer Recommendations":
23
+ st.write("You have selected **Customer Recommendations**.")
24
+ # Aquí puedes incluir el contenido de la página 'customer_recommendation.py'