MohanadAfiffy commited on
Commit
e334675
·
verified ·
1 Parent(s): 3b337b3

Upload 2 files

Browse files
pages/pages_Apollo_Extract.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from clients import CompanySpecificClient,UserSpecificClient,bothFeaturesFunction
3
+
4
+ def main():
5
+ # Start of the form
6
+ if 'form_submitted' not in st.session_state:
7
+ st.session_state['form_submitted'] = False
8
+ with st.form(key='my_form'):
9
+ options = ["Company-Specific Email Outreach", "Leadership Email Customization"]
10
+ selected_options = st.multiselect("Please select the needed features", options)
11
+
12
+ email_options = [
13
14
15
16
17
18
19
20
21
22
+ ]
23
+ email_receiver = st.selectbox("Please select an email address", email_options)
24
+
25
+ # Submit button for the form
26
+ submit_button = st.form_submit_button(label='Select features')
27
+
28
+ # Check if the form has been submitted
29
+ if submit_button:
30
+ st.session_state['form_submitted'] = True
31
+ if st.session_state['form_submitted']:
32
+ if "Company-Specific Email Outreach" in selected_options and "Leadership Email Customization" in selected_options:
33
+ bothFeaturesFunction(email_receiver)
34
+ elif "Company-Specific Email Outreach" in selected_options :
35
+ CompanySpecificClient(email_receiver)
36
+ elif "Leadership Email Customization" in selected_options :
37
+ UserSpecificClient(email_receiver)
38
+
39
+
40
+
41
+ if __name__ == "__main__":
42
+ st.markdown(
43
+ """
44
+ <style>
45
+ .higher-title {
46
+ font-size:35px !important;
47
+ color: #4A90E2; /* Shade of blue */
48
+ text-align: center;
49
+ font-weight: bold;
50
+ margin-top: -20px; /* Adjust this value to control the height */
51
+ }
52
+ </style>
53
+ """,
54
+ unsafe_allow_html=True,
55
+ )
56
+
57
+ st.markdown('<p class="higher-title">SalesIntel AI</p>', unsafe_allow_html=True)
58
+
59
+
60
+
61
+ logo_url = "https://i.imgur.com/WYnv26e.jpeg" # Replace this with your image's direct URL
62
+ st.markdown(
63
+ f"""
64
+ <style>
65
+ .logo {{
66
+ position: fixed;
67
+ bottom: 5px;
68
+ right: 5px;
69
+ width: 100px; # Adjust width as needed
70
+ }}
71
+ </style>
72
+ <img src="{logo_url}" class="logo">
73
+ """,
74
+ unsafe_allow_html=True,
75
+ )
76
+ main()
77
+
pages/pages_Business_Hubs.py ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "[email protected]": "Michael",
20
+ "[email protected]": "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
+