jaothan commited on
Commit
7940953
·
verified ·
1 Parent(s): 94499e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +47 -22
app.py CHANGED
@@ -14,30 +14,56 @@ sections = [
14
  ]
15
  selected_section = st.sidebar.radio("Select Section", sections)
16
 
17
- # Sample questions (Replace with actual data)
18
- questions = [
19
- {
20
- "question": "Our organization has considered GenAI risks around design, data, performance, inclusivity, third-party, and compliance?",
21
- "options": [
22
- "We're in the exploratory phase, researching potential capabilities and benefits",
23
- "We've evaluated a pilot program or proof-of-concept",
24
- "We've developed a strategic plan and are integrating an enterprise AI solution",
25
- "We've integrated solutions into most of our cross-functional initiatives"
26
- ]
27
- },
28
- {
29
- "question": "Our organization has considered integrated GenAI to proactively identify and predict potential risk areas?",
30
- "options": [
31
- "We're in the exploratory phase, researching capabilities",
32
- "We've conducted pilots to validate feasibility",
33
- "We've developed a strategy and are in the integration process",
34
- "We've integrated solutions across our organization"
35
- ]
36
- }
37
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  st.title(f"{selected_section}")
40
 
 
 
41
  for idx, q in enumerate(questions):
42
  st.subheader(f"Q{idx + 1}: {q['question']}")
43
  st.radio("", q["options"], key=f"q{idx}")
@@ -49,4 +75,3 @@ with col1:
49
  st.button("Previous Section")
50
  with col2:
51
  st.button("Next Section")
52
-
 
14
  ]
15
  selected_section = st.sidebar.radio("Select Section", sections)
16
 
17
+ # Sample questions per section
18
+ questions_dict = {
19
+ "Customer Experience": [
20
+ {
21
+ "question": "How does your organization leverage AI for customer interactions?",
22
+ "options": [
23
+ "We are exploring AI capabilities",
24
+ "We have tested AI in pilot programs",
25
+ "We have implemented AI in key areas",
26
+ "AI is fully integrated into customer interactions"
27
+ ]
28
+ }
29
+ ],
30
+ "Culture & People": [
31
+ {
32
+ "question": "How is AI adoption being encouraged in your workforce?",
33
+ "options": [
34
+ "We are raising awareness about AI",
35
+ "We provide AI training programs",
36
+ "AI-driven processes are being integrated",
37
+ "AI is embedded in our organizational culture"
38
+ ]
39
+ }
40
+ ],
41
+ "Risk & Cybersecurity": [
42
+ {
43
+ "question": "Our organization has considered GenAI risks around design, data, performance, inclusivity, third-party, and compliance?",
44
+ "options": [
45
+ "We're in the exploratory phase, researching potential capabilities and benefits",
46
+ "We've evaluated a pilot program or proof-of-concept",
47
+ "We've developed a strategic plan and are integrating an enterprise AI solution",
48
+ "We've integrated solutions into most of our cross-functional initiatives"
49
+ ]
50
+ },
51
+ {
52
+ "question": "Our organization has considered integrated GenAI to proactively identify and predict potential risk areas?",
53
+ "options": [
54
+ "We're in the exploratory phase, researching capabilities",
55
+ "We've conducted pilots to validate feasibility",
56
+ "We've developed a strategy and are in the integration process",
57
+ "We've integrated solutions across our organization"
58
+ ]
59
+ }
60
+ ]
61
+ }
62
 
63
  st.title(f"{selected_section}")
64
 
65
+ questions = questions_dict.get(selected_section, [])
66
+
67
  for idx, q in enumerate(questions):
68
  st.subheader(f"Q{idx + 1}: {q['question']}")
69
  st.radio("", q["options"], key=f"q{idx}")
 
75
  st.button("Previous Section")
76
  with col2:
77
  st.button("Next Section")