MohanadAfiffy commited on
Commit
d770a38
·
verified ·
1 Parent(s): eabc080

Upload 2 files

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