SalesIntel / pages /Apollo_Extract.py
MohanadAfiffy's picture
Update pages/Apollo_Extract.py
99aa11a verified
raw
history blame
2.86 kB
# import streamlit as st
# st.write("On maintenance to release a new version")
import streamlit as st
from clients import CompanySpecificClient,UserSpecificClient,bothFeaturesFunction
def main():
# Start of the form
if 'form_submitted' not in st.session_state:
st.session_state['form_submitted'] = False
with st.form(key='my_form'):
options = ["Company-Specific Email Outreach", "Leadership Email Customization"]
selected_options = st.selectbox("Please select the needed feature", options)
email_options = [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
]
email_receiver = st.selectbox("Please select an email address", email_options)
# Submit button for the form
submit_button = st.form_submit_button(label='Select features')
# Check if the form has been submitted
if submit_button:
st.session_state['form_submitted'] = True
if st.session_state['form_submitted']:
if "Company-Specific Email Outreach" in selected_options and "Leadership Email Customization" in selected_options:
bothFeaturesFunction(email_receiver)
elif "Company-Specific Email Outreach" in selected_options :
CompanySpecificClient(email_receiver)
elif "Leadership Email Customization" in selected_options :
UserSpecificClient(email_receiver)
if __name__ == "__main__":
st.markdown(
"""
<style>
.higher-title {
font-size:35px !important;
color: #4A90E2; /* Shade of blue */
text-align: center;
font-weight: bold;
margin-top: -20px; /* Adjust this value to control the height */
}
</style>
""",
unsafe_allow_html=True,
)
st.markdown('<p class="higher-title">SalesIntel AI</p>', unsafe_allow_html=True)
logo_url = "https://i.imgur.com/WYnv26e.jpeg" # Replace this with your image's direct URL
st.markdown(
f"""
<style>
.logo {{
position: fixed;
bottom: 5px;
right: 5px;
width: 100px; # Adjust width as needed
}}
</style>
<img src="{logo_url}" class="logo">
""",
unsafe_allow_html=True,
)
main()