Spaces:
Sleeping
Sleeping
delete the previous version
Browse files- pages/Apollo_Extract.py +0 -78
- pages/Business_Hubs.py +0 -121
- pages/Hook2lead.py +0 -113
pages/Apollo_Extract.py
DELETED
@@ -1,78 +0,0 @@
|
|
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 |
-
"[email protected]",
|
16 |
-
"[email protected]",
|
17 |
-
"[email protected]",
|
18 |
-
"[email protected]",
|
19 |
-
"[email protected]",
|
20 |
-
"[email protected]",
|
21 |
-
"[email protected]",
|
22 |
-
"[email protected]",
|
23 | |
24 |
-
]
|
25 |
-
email_receiver = st.selectbox("Please select an email address", email_options)
|
26 |
-
|
27 |
-
# Submit button for the form
|
28 |
-
submit_button = st.form_submit_button(label='Select features')
|
29 |
-
|
30 |
-
# Check if the form has been submitted
|
31 |
-
if submit_button:
|
32 |
-
st.session_state['form_submitted'] = True
|
33 |
-
if st.session_state['form_submitted']:
|
34 |
-
if "Company-Specific Email Outreach" in selected_options and "Leadership Email Customization" in selected_options:
|
35 |
-
bothFeaturesFunction(email_receiver)
|
36 |
-
elif "Company-Specific Email Outreach" in selected_options :
|
37 |
-
CompanySpecificClient(email_receiver)
|
38 |
-
elif "Leadership Email Customization" in selected_options :
|
39 |
-
UserSpecificClient(email_receiver)
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
if __name__ == "__main__":
|
44 |
-
st.markdown(
|
45 |
-
"""
|
46 |
-
<style>
|
47 |
-
.higher-title {
|
48 |
-
font-size:35px !important;
|
49 |
-
color: #4A90E2; /* Shade of blue */
|
50 |
-
text-align: center;
|
51 |
-
font-weight: bold;
|
52 |
-
margin-top: -20px; /* Adjust this value to control the height */
|
53 |
-
}
|
54 |
-
</style>
|
55 |
-
""",
|
56 |
-
unsafe_allow_html=True,
|
57 |
-
)
|
58 |
-
|
59 |
-
st.markdown('<p class="higher-title">SalesIntel AI</p>', unsafe_allow_html=True)
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
logo_url = "https://i.imgur.com/WYnv26e.jpeg" # Replace this with your image's direct URL
|
64 |
-
st.markdown(
|
65 |
-
f"""
|
66 |
-
<style>
|
67 |
-
.logo {{
|
68 |
-
position: fixed;
|
69 |
-
bottom: 5px;
|
70 |
-
right: 5px;
|
71 |
-
width: 100px; # Adjust width as needed
|
72 |
-
}}
|
73 |
-
</style>
|
74 |
-
<img src="{logo_url}" class="logo">
|
75 |
-
""",
|
76 |
-
unsafe_allow_html=True,
|
77 |
-
)
|
78 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pages/Business_Hubs.py
DELETED
@@ -1,121 +0,0 @@
|
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pages/Hook2lead.py
DELETED
@@ -1,113 +0,0 @@
|
|
1 |
-
import streamlit as st
|
2 |
-
import requests
|
3 |
-
import os
|
4 |
-
|
5 |
-
st.set_page_config(layout="wide")
|
6 |
-
st.html("styles.html")
|
7 |
-
endpoint = os.getenv('blog_lead_endpoint')
|
8 |
-
|
9 |
-
def main():
|
10 |
-
st.markdown('<h1 class="stTitle">Hook2Lead</h1>', unsafe_allow_html=True)
|
11 |
-
st.markdown('<h2 class="stSubheader">Share your hooks, and we will connect you with interested leads</h2>', unsafe_allow_html=True)
|
12 |
-
email_options = [
|
13 |
-
"[email protected]",
|
14 |
-
"[email protected]",
|
15 |
-
"[email protected]",
|
16 |
-
"[email protected]",
|
17 |
-
"[email protected]",
|
18 |
-
"[email protected]",
|
19 |
-
"[email protected]",
|
20 |
-
"[email protected]",
|
21 |
-
"[email protected]",
|
22 | |
23 |
-
|
24 |
-
]
|
25 |
-
|
26 |
-
account_stages = [
|
27 |
-
"Pre-Sales",
|
28 |
-
"Pre-Sales (Unresponsive, After Call)",
|
29 |
-
"Pre-Sales (Long-Term/ Cold)",
|
30 |
-
"Sales Opportunity",
|
31 |
-
"Closed Lost (Opportunity)",
|
32 |
-
"Current Client",
|
33 |
-
"Pre-Sales (Short-Term/ Hot)",
|
34 |
-
"Pre-Sales (Mid-Term/ Warm)",
|
35 |
-
"Project Cancelled"
|
36 |
-
]
|
37 |
-
|
38 |
-
query_types = ["blog", "announcement", "AI_trend"]
|
39 |
-
|
40 |
-
# Get the current number of queries from query params
|
41 |
-
if 'num_queries' not in st.session_state:
|
42 |
-
st.session_state.num_queries = 1
|
43 |
-
|
44 |
-
# Creating a form
|
45 |
-
with st.form(key='blog2lead_form'):
|
46 |
-
email_address = st.selectbox("**Select your email address**", email_options)
|
47 |
-
selected_stages = st.multiselect("**Select Account Stages (optional)**", account_stages)
|
48 |
-
|
49 |
-
queries = {}
|
50 |
-
query_types_selected = []
|
51 |
-
|
52 |
-
# Add query fields based on the current number of queries
|
53 |
-
for i in range(st.session_state.num_queries):
|
54 |
-
cols = st.columns([3, 1]) # Adjust the width ratio here
|
55 |
-
with cols[0]:
|
56 |
-
query_label = ["first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth"][i]
|
57 |
-
query = st.text_input(f"**Enter your {query_label} hook**", key=f"query_{i}", help="you can enter your hook directly or a url")
|
58 |
-
with cols[1]:
|
59 |
-
query_type = st.selectbox(f"**Select {query_label} hook type**", query_types, key=f"type_{i}")
|
60 |
-
if query.strip():
|
61 |
-
queries[query] = query_type
|
62 |
-
|
63 |
-
# Button to add more query fields
|
64 |
-
add_query = st.form_submit_button(label='Add another query')
|
65 |
-
submit_button = st.form_submit_button(label='Submit')
|
66 |
-
|
67 |
-
if add_query:
|
68 |
-
st.session_state.num_queries += 1
|
69 |
-
st.rerun()
|
70 |
-
if submit_button:
|
71 |
-
if queries and email_address:
|
72 |
-
# Define your data payload to send
|
73 |
-
queries = {k: v for k, v in queries.items() if k and v}
|
74 |
-
data_to_send = {
|
75 |
-
"queries": queries,
|
76 |
-
"email_receiver": email_address,
|
77 |
-
}
|
78 |
-
|
79 |
-
# Add the filter to the payload only if selected_stages is not empty
|
80 |
-
if selected_stages:
|
81 |
-
data_to_send["filter"] = {
|
82 |
-
"Account Stage": {"$in": selected_stages}
|
83 |
-
}
|
84 |
-
|
85 |
-
# Sending the POST request to FastAPI
|
86 |
-
response = requests.post(endpoint, json=data_to_send)
|
87 |
-
|
88 |
-
# Handling the response
|
89 |
-
if response.status_code == 200:
|
90 |
-
st.info("Your request has been processed successfully.")
|
91 |
-
else:
|
92 |
-
st.error("Data transmission failed. Please try again later.")
|
93 |
-
else:
|
94 |
-
st.error("Please fill out all fields.")
|
95 |
-
|
96 |
-
if __name__ == "__main__":
|
97 |
-
logo_url = "https://i.imgur.com/WYnv26e.jpeg" # Replace this with your image's direct URL
|
98 |
-
st.markdown(
|
99 |
-
f"""
|
100 |
-
<style>
|
101 |
-
.logo {{
|
102 |
-
position: fixed;
|
103 |
-
bottom: 5px;
|
104 |
-
right: 5px;
|
105 |
-
width: 100px; # Adjust width as needed
|
106 |
-
}}
|
107 |
-
</style>
|
108 |
-
<img src="{logo_url}" class="logo">
|
109 |
-
""",
|
110 |
-
unsafe_allow_html=True,
|
111 |
-
)
|
112 |
-
|
113 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|