Spaces:
Sleeping
Sleeping
File size: 3,967 Bytes
e948367 e334675 e948367 e334675 e948367 e334675 e948367 e334675 e948367 fdc1300 e948367 e334675 533eb30 e948367 e334675 e948367 e334675 e948367 e334675 e948367 e334675 e948367 e334675 e948367 e334675 e948367 e334675 e948367 e334675 |
1 2 3 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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# import streamlit as st
# st.write("on maintenance to release a new version")
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 2 12:26:26 2024
@author: mohanadafiffy
"""
import streamlit as st
from clients import BH_Ngo ,BH_industry
def main():
# Start of the form
if 'form_submitted' not in st.session_state:
st.session_state['form_submitted'] = False
# Dictionary mapping emails to sender names
email_to_sender = {
"[email protected]": "Michael",
"[email protected]": "James",
"[email protected]": "Weronika",
"[email protected]": "Paulina",
"[email protected]": "Fabio",
"[email protected]": "Rudradeb",
"[email protected]": "Mohanad",
"[email protected]": "Huzefa",
"[email protected]": "Mustafa",
"[email protected]": "Mike",
"[email protected]": "Ansh",
"[email protected]": "Jamaludeen",
"[email protected]": "Mohammed Zuhair",
"[email protected]": "Shawna",
"[email protected]": "Peter",
"[email protected]": "Derek",
"[email protected]": "Allan",
"[email protected]": "Miguel",
"[email protected]": "Cristian",
"[email protected]": "Vamsi Krishna",
"[email protected]": "Manifest",
"[email protected]": "Utkarsha",
"[email protected]": "Emmanuel",
"[email protected]": "Damian",
"[email protected]": "Humberto",
"[email protected]": "Nafsika",
"[email protected]": "Madalin",
"[email protected]": "William",
"[email protected]": "Adish",
"[email protected]": "John",
"[email protected]": "Dmytro",
"[email protected]": "Levent",
"[email protected]": "Joao",
"[email protected]": "Lior",
"[email protected]":"Lorenz Villain"
}
with st.form(key='my_form'):
options = ["NGO Emails", "Industry company focused Emails"]
selected_options = st.selectbox("Please select the needed features", options,key='select feature')
email_options = list(email_to_sender.keys())
email_receiver = st.selectbox("Please select an email address", email_options)
# Display the sender name based on the selected email
sender_name = email_to_sender.get(email_receiver, " ")
# Submit button for the form
calendly_link = st.text_input("Please write your Calendly link")
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 "NGO Emails" in selected_options :
BH_Ngo(email_receiver,calendly_link,sender_name)
elif "Industry company focused Emails" in selected_options :
BH_industry(email_receiver,calendly_link,sender_name)
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()
|