Spaces:
Runtime error
Runtime error
adding rayan prompt
Browse files
app.py
CHANGED
|
@@ -517,9 +517,12 @@ if st.session_state.get('button') == True:
|
|
| 517 |
"Shorten the subject line",
|
| 518 |
"Replace technical terms with simpler language"],
|
| 519 |
None)
|
|
|
|
|
|
|
|
|
|
| 520 |
|
| 521 |
if st.button('Generate AI Recommended Email'):
|
| 522 |
-
if(
|
| 523 |
st.error('Please select your preferences.')
|
| 524 |
else:
|
| 525 |
stats_col1, stats_col2, stats_col3, stats_col4 = st.columns([1, 1, 1, 1])
|
|
|
|
| 517 |
"Shorten the subject line",
|
| 518 |
"Replace technical terms with simpler language"],
|
| 519 |
None)
|
| 520 |
+
st.markdown('preference: {}, len preference: '.format(preference, len(preference)),unsafe_allow_html=True)
|
| 521 |
+
st.markdown('options: {}'.format(options),unsafe_allow_html=True)
|
| 522 |
+
|
| 523 |
|
| 524 |
if st.button('Generate AI Recommended Email'):
|
| 525 |
+
if(preference is None and options is None):
|
| 526 |
st.error('Please select your preferences.')
|
| 527 |
else:
|
| 528 |
stats_col1, stats_col2, stats_col3, stats_col4 = st.columns([1, 1, 1, 1])
|