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