-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
24 lines (17 loc) · 832 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from functions import *
st.header("Send a lot of Emails | Personalized!!")
uploaded_file = st.file_uploader("Upload CSV of Emails")
prompt_choice = st.radio(
"Choose a prompt option:",
options=["Use default", "Message and Subject prompts"]
)
st.markdown("**Fire up ChatGPT**")
if prompt_choice == "Use default":
if st.button("Send the Emails!!!"):
craft_message(uploaded_file)
if prompt_choice == "Message and Subject prompts":
message = st.text_area("Input the template you want Gemini to Edit",value=default_message)
subject = st.text_input("Subject", value=default_subject)
author = st.text_input("CopyWriter | Who's Style you want to Copy", value=default_author)
if st.button("Send the Emails!!"):
craft_message(uploaded_file, message=message, author=author, subject=subject)