jaothan commited on
Commit
b361286
·
verified ·
1 Parent(s): f03fa95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -32,13 +32,13 @@ st.title("Generative AI Maturity assessment for your organization (overview)")
32
 
33
  # Sidebar
34
  st.sidebar.header("Overview")
35
- st.sidebar.write(df_sidebar)
36
 
37
  # Main content
38
  col1, col2 = st.columns([1, 2])
39
 
40
  with col1:
41
- # Pie chart for maturity stages
42
  st.subheader("Maturity Stages")
43
  maturity_data = {
44
  'Ideating': 0.1,
@@ -49,7 +49,7 @@ with col1:
49
  }
50
  labels = list(maturity_data.keys())
51
  sizes = list(maturity_data.values())
52
-
53
  fig_pie = go.Figure(data=[go.Pie(labels=labels, values=sizes, hole=.4)])
54
  fig_pie.update_layout(
55
  title='Overall, your organization’s GenAI maturity is in the Experimenting stage',
@@ -80,12 +80,12 @@ with col2:
80
  # Descriptions
81
  st.markdown('''
82
  <style>
83
- .description-box {
84
- background-color: #f0f0f0;
85
- padding: 10px;
86
- margin-top: 10px;
87
- border-radius: 5px;
88
- }
89
  </style>
90
  ''', unsafe_allow_html=True)
91
 
 
32
 
33
  # Sidebar
34
  st.sidebar.header("Overview")
35
+ selected_stage = st.sidebar.selectbox("Select Stage", df_sidebar['Stage'])
36
 
37
  # Main content
38
  col1, col2 = st.columns([1, 2])
39
 
40
  with col1:
41
+ # Donut chart for maturity stages
42
  st.subheader("Maturity Stages")
43
  maturity_data = {
44
  'Ideating': 0.1,
 
49
  }
50
  labels = list(maturity_data.keys())
51
  sizes = list(maturity_data.values())
52
+
53
  fig_pie = go.Figure(data=[go.Pie(labels=labels, values=sizes, hole=.4)])
54
  fig_pie.update_layout(
55
  title='Overall, your organization’s GenAI maturity is in the Experimenting stage',
 
80
  # Descriptions
81
  st.markdown('''
82
  <style>
83
+ .description-box {
84
+ background-color: #f0f0f0;
85
+ padding: 10px;
86
+ margin-top: 10px;
87
+ border-radius: 5px;
88
+ }
89
  </style>
90
  ''', unsafe_allow_html=True)
91