MohanadAfiffy commited on
Commit
533eb30
·
verified ·
1 Parent(s): 1f6966e

Update pages/pages_Business_Hubs.py

Browse files
Files changed (1) hide show
  1. pages/pages_Business_Hubs.py +101 -99
pages/pages_Business_Hubs.py CHANGED
@@ -1,117 +1,119 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
- """
4
- Created on Tue Jan 2 12:26:26 2024
5
 
6
- @author: mohanadafiffy
7
- """
 
 
 
8
 
9
- import streamlit as st
10
- from clients import BH_Ngo ,BH_industry
11
 
12
- def main():
13
- # Start of the form
14
- if 'form_submitted' not in st.session_state:
15
- st.session_state['form_submitted'] = False
16
 
17
- # Dictionary mapping emails to sender names
18
- email_to_sender = {
19
- "michael@omdena.com": "Michael",
20
- "jamesel@omdena.com": "James",
21
- "[email protected]": "Weronika",
22
- "[email protected]": "Paulina",
23
- "[email protected]": "Fabio",
24
- "[email protected]": "Rudradeb",
25
- "[email protected]": "Mohanad",
26
- "[email protected]": "Huzefa",
27
- "[email protected]": "Mustafa",
28
- "[email protected]": "Mike",
29
- "[email protected]": "Ansh",
30
- "[email protected]": "Jamaludeen",
31
- "[email protected]": "Mohammed Zuhair",
32
- "[email protected]": "Shawna",
33
- "[email protected]": "Peter",
34
- "[email protected]": "Derek",
35
- "[email protected]": "Allan",
36
- "[email protected]": "Miguel",
37
- "[email protected]": "Cristian",
38
- "[email protected]": "Vamsi Krishna",
39
- "[email protected]": "Manifest",
40
- "[email protected]": "Utkarsha",
41
- "[email protected]": "Emmanuel",
42
- "[email protected]": "Damian",
43
- "[email protected]": "Humberto",
44
- "[email protected]": "Nafsika",
45
- "[email protected]": "Madalin",
46
- "[email protected]": "William",
47
- "[email protected]": "Adish",
48
- "[email protected]": "John",
49
- "[email protected]": "Dmytro",
50
- "[email protected]": "Levent",
51
- "[email protected]": "Joao",
52
- "[email protected]": "Lior"
53
- }
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
- with st.form(key='my_form'):
57
- options = ["NGO Emails", "Industry company focused Emails"]
58
- selected_options = st.selectbox("Please select the needed features", options,key='select feature')
 
59
 
60
- email_options = list(email_to_sender.keys())
61
- email_receiver = st.selectbox("Please select an email address", email_options)
62
 
63
- # Display the sender name based on the selected email
64
- sender_name = email_to_sender.get(email_receiver, " ")
65
 
66
- # Submit button for the form
67
- calendly_link = st.text_input("Please write your Calendly link")
68
- submit_button = st.form_submit_button(label='Select features')
69
 
70
- # Check if the form has been submitted
71
- if submit_button:
72
- st.session_state['form_submitted'] = True
73
- if st.session_state['form_submitted']:
74
- if "NGO Emails" in selected_options :
75
- BH_Ngo(email_receiver,calendly_link,sender_name)
76
- elif "Industry company focused Emails" in selected_options :
77
- BH_industry(email_receiver,calendly_link,sender_name)
78
 
79
 
80
 
81
- if __name__ == "__main__":
82
- st.markdown(
83
- """
84
- <style>
85
- .higher-title {
86
- font-size:35px !important;
87
- color: #4A90E2; /* Shade of blue */
88
- text-align: center;
89
- font-weight: bold;
90
- margin-top: -20px; /* Adjust this value to control the height */
91
- }
92
- </style>
93
- """,
94
- unsafe_allow_html=True,
95
- )
96
 
97
- st.markdown('<p class="higher-title">SalesIntel AI</p>', unsafe_allow_html=True)
98
 
99
 
100
 
101
- logo_url = "https://i.imgur.com/WYnv26e.jpeg" # Replace this with your image's direct URL
102
- st.markdown(
103
- f"""
104
- <style>
105
- .logo {{
106
- position: fixed;
107
- bottom: 5px;
108
- right: 5px;
109
- width: 100px; # Adjust width as needed
110
- }}
111
- </style>
112
- <img src="{logo_url}" class="logo">
113
- """,
114
- unsafe_allow_html=True,
115
- )
116
- main()
117
 
 
 
 
 
 
1
 
2
+ st.write("on maintenance to release a new version")
3
+ # #!/usr/bin/env python3
4
+ # # -*- coding: utf-8 -*-
5
+ # """
6
+ # Created on Tue Jan 2 12:26:26 2024
7
 
8
+ # @author: mohanadafiffy
9
+ # """
10
 
11
+ # import streamlit as st
12
+ # from clients import BH_Ngo ,BH_industry
 
 
13
 
14
+ # def main():
15
+ # # Start of the form
16
+ # if 'form_submitted' not in st.session_state:
17
+ # st.session_state['form_submitted'] = False
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
+ # # Dictionary mapping emails to sender names
20
+ # email_to_sender = {
21
+ # "[email protected]": "Michael",
22
+ # "[email protected]": "James",
23
+ # "[email protected]": "Weronika",
24
+ # "[email protected]": "Paulina",
25
+ # "[email protected]": "Fabio",
26
+ # "[email protected]": "Rudradeb",
27
+ # "[email protected]": "Mohanad",
28
+ # "[email protected]": "Huzefa",
29
+ # "[email protected]": "Mustafa",
30
+ # "[email protected]": "Mike",
31
+ # "[email protected]": "Ansh",
32
+ # "[email protected]": "Jamaludeen",
33
+ # "[email protected]": "Mohammed Zuhair",
34
+ # "[email protected]": "Shawna",
35
+ # "[email protected]": "Peter",
36
+ # "[email protected]": "Derek",
37
+ # "[email protected]": "Allan",
38
+ # "[email protected]": "Miguel",
39
+ # "[email protected]": "Cristian",
40
+ # "[email protected]": "Vamsi Krishna",
41
+ # "[email protected]": "Manifest",
42
+ # "[email protected]": "Utkarsha",
43
+ # "[email protected]": "Emmanuel",
44
+ # "[email protected]": "Damian",
45
+ # "[email protected]": "Humberto",
46
+ # "[email protected]": "Nafsika",
47
+ # "[email protected]": "Madalin",
48
+ # "[email protected]": "William",
49
+ # "[email protected]": "Adish",
50
+ # "[email protected]": "John",
51
+ # "[email protected]": "Dmytro",
52
+ # "[email protected]": "Levent",
53
+ # "[email protected]": "Joao",
54
+ # "[email protected]": "Lior"
55
+ # }
56
 
57
+
58
+ # with st.form(key='my_form'):
59
+ # options = ["NGO Emails", "Industry company focused Emails"]
60
+ # selected_options = st.selectbox("Please select the needed features", options,key='select feature')
61
 
62
+ # email_options = list(email_to_sender.keys())
63
+ # email_receiver = st.selectbox("Please select an email address", email_options)
64
 
65
+ # # Display the sender name based on the selected email
66
+ # sender_name = email_to_sender.get(email_receiver, " ")
67
 
68
+ # # Submit button for the form
69
+ # calendly_link = st.text_input("Please write your Calendly link")
70
+ # submit_button = st.form_submit_button(label='Select features')
71
 
72
+ # # Check if the form has been submitted
73
+ # if submit_button:
74
+ # st.session_state['form_submitted'] = True
75
+ # if st.session_state['form_submitted']:
76
+ # if "NGO Emails" in selected_options :
77
+ # BH_Ngo(email_receiver,calendly_link,sender_name)
78
+ # elif "Industry company focused Emails" in selected_options :
79
+ # BH_industry(email_receiver,calendly_link,sender_name)
80
 
81
 
82
 
83
+ # if __name__ == "__main__":
84
+ # st.markdown(
85
+ # """
86
+ # <style>
87
+ # .higher-title {
88
+ # font-size:35px !important;
89
+ # color: #4A90E2; /* Shade of blue */
90
+ # text-align: center;
91
+ # font-weight: bold;
92
+ # margin-top: -20px; /* Adjust this value to control the height */
93
+ # }
94
+ # </style>
95
+ # """,
96
+ # unsafe_allow_html=True,
97
+ # )
98
 
99
+ # st.markdown('<p class="higher-title">SalesIntel AI</p>', unsafe_allow_html=True)
100
 
101
 
102
 
103
+ # logo_url = "https://i.imgur.com/WYnv26e.jpeg" # Replace this with your image's direct URL
104
+ # st.markdown(
105
+ # f"""
106
+ # <style>
107
+ # .logo {{
108
+ # position: fixed;
109
+ # bottom: 5px;
110
+ # right: 5px;
111
+ # width: 100px; # Adjust width as needed
112
+ # }}
113
+ # </style>
114
+ # <img src="{logo_url}" class="logo">
115
+ # """,
116
+ # unsafe_allow_html=True,
117
+ # )
118
+ # main()
119