Spaces:
Sleeping
Sleeping
sab
commited on
Commit
β’
840482f
1
Parent(s):
9b93e00
first commit
Browse files
app.py
CHANGED
@@ -38,12 +38,11 @@ class DraftlyticsApp:
|
|
38 |
|
39 |
def display_header(self):
|
40 |
#st.image('images/rephraise_logo.png', width=100)
|
41 |
-
st.markdown(f"# Welcome to {Config.PAGE_TITLE}
|
42 |
-
st.write("### Your Expert AI Email Assistant
|
43 |
|
44 |
def get_user_input(self):
|
45 |
st.subheader("π What is the main subject of your email?")
|
46 |
-
st.write("Note: The generated email will be in English.")
|
47 |
with st.expander("βοΈ Email Input", expanded=True):
|
48 |
input_c1 = st.text_input('Provide the main topic of your email', '')
|
49 |
input_c2 = st.text_input('Provide the secondary topic of your email (optional)', '')
|
@@ -62,6 +61,7 @@ class DraftlyticsApp:
|
|
62 |
if st.button('Generate Email π'):
|
63 |
with st.spinner('Generating your email... β³'):
|
64 |
self.validate_and_generate_email(input_c1, input_c2, input_sender, input_recipient, input_style)
|
|
|
65 |
|
66 |
def validate_and_generate_email(self, input_c1, input_c2, input_sender, input_recipient, input_style):
|
67 |
if not input_c1.strip():
|
|
|
38 |
|
39 |
def display_header(self):
|
40 |
#st.image('images/rephraise_logo.png', width=100)
|
41 |
+
st.markdown(f"# Welcome to {Config.PAGE_TITLE} π€")
|
42 |
+
st.write("### Your Expert AI Email Assistant ")
|
43 |
|
44 |
def get_user_input(self):
|
45 |
st.subheader("π What is the main subject of your email?")
|
|
|
46 |
with st.expander("βοΈ Email Input", expanded=True):
|
47 |
input_c1 = st.text_input('Provide the main topic of your email', '')
|
48 |
input_c2 = st.text_input('Provide the secondary topic of your email (optional)', '')
|
|
|
61 |
if st.button('Generate Email π'):
|
62 |
with st.spinner('Generating your email... β³'):
|
63 |
self.validate_and_generate_email(input_c1, input_c2, input_sender, input_recipient, input_style)
|
64 |
+
st.write("Note: The generated email will be in English.")
|
65 |
|
66 |
def validate_and_generate_email(self, input_c1, input_c2, input_sender, input_recipient, input_style):
|
67 |
if not input_c1.strip():
|