MohanadAfiffy commited on
Commit
e948367
·
verified ·
1 Parent(s): dddd387

Update pages/pages_Business_Hubs.py

Browse files
Files changed (1) hide show
  1. pages/pages_Business_Hubs.py +101 -101
pages/pages_Business_Hubs.py CHANGED
@@ -1,119 +1,119 @@
1
- import streamlit as st
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
 
 
1
+ # import streamlit as st
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