Spaces:
Runtime error
Runtime error
adding rayan prompt
Browse files
app.py
CHANGED
|
@@ -499,11 +499,12 @@ if st.session_state.get('button') == True:
|
|
| 499 |
# st.write("\n")
|
| 500 |
chars_out = dict(zip(chars, sel_var_values))
|
| 501 |
sorted_chars_out = sorted(chars_out.items(), key=lambda x: x[1], reverse=True)
|
| 502 |
-
prefrence_variables=
|
|
|
|
| 503 |
preference = st.selectbox(
|
| 504 |
'Please select your preferences',
|
| 505 |
prefrence_variables,
|
| 506 |
-
index=
|
| 507 |
)
|
| 508 |
options = st.multiselect(
|
| 509 |
'Select propmts you want to use to generate your email:',
|
|
|
|
| 499 |
# st.write("\n")
|
| 500 |
chars_out = dict(zip(chars, sel_var_values))
|
| 501 |
sorted_chars_out = sorted(chars_out.items(), key=lambda x: x[1], reverse=True)
|
| 502 |
+
prefrence_variables=["charcter counts: "+str(x)+", Target Rate: "+str(y) for x,y in zip(chars,sel_var_values)]
|
| 503 |
+
prefrence_variables=['']+prefrence_variables
|
| 504 |
preference = st.selectbox(
|
| 505 |
'Please select your preferences',
|
| 506 |
prefrence_variables,
|
| 507 |
+
index=0
|
| 508 |
)
|
| 509 |
options = st.multiselect(
|
| 510 |
'Select propmts you want to use to generate your email:',
|