-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
30 lines (23 loc) · 1.12 KB
/
app.py
File metadata and controls
30 lines (23 loc) · 1.12 KB
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
from functions import *
prompt_choice = st.radio(
"Choose a prompt option:",
options=["Use default prompt", "Write my own prompts"]
)
client_address = st.text_input("Client Address | Where you want to send the CSV that has the rows with Public Emaisl")
uploaded_file = st.file_uploader("Upload a CSV file")
if st.button("Send the Email Rows to Client"):
writer(uploaded_file)
emailer(client_address)
if prompt_choice == "Use default prompt":
if st.button("Get the DMs!!!"):
process_csv(uploaded_file)
else: # User wants to write their own prompt
# Display prompt input box and other relevant elements
message = st.text_area("Write your prompt:", value=default_message)
niche = st.text_input("Niche: ", value=niche)
clients_offer = st.text_area("Write the Offer you want to pitch the client", value=clients_offer)
autors = st.text_input("Enter the Copywriter you love | Copy his Style of Writing. ", value=autors)
st.write("I like Alex Cattoni Writing Style")
if st.button("Get the DMs!!!"):
if uploaded_file is not None:
process_csv(uploaded_file)