Wajahat698 commited on
Commit
e447a05
·
verified ·
1 Parent(s): 9854c22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -35
app.py CHANGED
@@ -767,49 +767,19 @@ def side():
767
 
768
 
769
 
770
- trust_buckets = [
771
- {"name": "Stability", "color": "rgb(7, 55, 99)"},
772
- {"name": "Development", "color": "rgb(241, 194, 50)"},
773
- {"name": "Relationship", "color": "rgb(204, 0, 0)"},
774
- {"name": "Benefit", "color": "rgb(56, 118, 29)"},
775
- {"name": "Vision", "color": "rgb(255, 153, 0)"},
776
- {"name": "Competence", "color": "rgb(111, 168, 220)"},
777
- ]
778
-
779
- # Extract bucket names for the selectbox
780
- bucket_names = [bucket["name"] for bucket in trust_buckets]
781
-
782
- # Add a dropdown for selecting a Trust Bucket
783
- selected_bucket = st.selectbox("Select Trust Bucket", bucket_names)
784
-
785
- # Find the corresponding color for the selected Trust Bucket
786
- selected_color = next(
787
- (bucket["color"] for bucket in trust_buckets if bucket["name"] == selected_bucket),
788
- "black",
789
- )
790
-
791
- # Display the selected Trust Bucket with its color
792
- st.markdown(
793
- f'<p style="font-size: 18px; color: {selected_color};"><strong>Selected Trust Bucket:</strong> {selected_bucket}</p>',
794
- unsafe_allow_html=True,
795
- )
796
 
797
 
798
 
799
  st.subheader("Show My TrustBuilders®")
800
  search_query = st.text_input("Search by keyword", key="search_query")
801
-
802
-
803
-
804
-
805
-
806
-
807
-
808
 
 
809
 
810
 
811
-
812
-
813
  if st.button("Show TrustBuilders", key="show_trustbuilders"):
814
  trustbuilders = fetch_trustbuilders(st.session_state.get("wix_user_id"))
815
 
 
767
 
768
 
769
 
770
+ trust_buckets = ["Stability", "Development", "Relationship", "Benefit", "Vision", "Competence"]
771
+
772
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
773
 
774
 
775
 
776
  st.subheader("Show My TrustBuilders®")
777
  search_query = st.text_input("Search by keyword", key="search_query")
778
+ selected_bucket = st.selectbox("Select Trust Bucket",trust_buckets, key="selected_bucket")
 
 
 
 
 
 
779
 
780
+
781
 
782
 
 
 
783
  if st.button("Show TrustBuilders", key="show_trustbuilders"):
784
  trustbuilders = fetch_trustbuilders(st.session_state.get("wix_user_id"))
785