Spaces:
Running
Running
phyloforfun
commited on
Commit
•
3d2a012
1
Parent(s):
d2fb9ea
file upload gallery
Browse files
app.py
CHANGED
@@ -1163,21 +1163,22 @@ The desired null value is also given. Populate the field with the null value of
|
|
1163 |
|
1164 |
with col_prompt_main_right:
|
1165 |
if st.session_state['user_clicked_load_prompt_yaml'] is None: # see if user has loaded a yaml to edit
|
1166 |
-
st.session_state['show_prompt_name_e'] = f"Prompt:
|
1167 |
if st.session_state['new_prompt_yaml_filename']:
|
1168 |
-
st.session_state['show_prompt_name_w'] = f"Prompt
|
1169 |
else:
|
1170 |
-
st.session_state['show_prompt_name_w'] = f"Prompt
|
1171 |
else:
|
1172 |
-
st.session_state['show_prompt_name_e'] = f"Prompt:
|
1173 |
if st.session_state['new_prompt_yaml_filename']:
|
1174 |
-
st.session_state['show_prompt_name_w'] = f"Prompt
|
1175 |
else:
|
1176 |
-
st.session_state['show_prompt_name_w'] = f"Prompt
|
1177 |
|
1178 |
st.subheader(f'Full Prompt')
|
1179 |
st.write(st.session_state['show_prompt_name_e'])
|
1180 |
st.write(st.session_state['show_prompt_name_w'])
|
|
|
1181 |
st.session_state['prompt_info'] = {
|
1182 |
'prompt_author': st.session_state['prompt_author'],
|
1183 |
'prompt_author_institution': st.session_state['prompt_author_institution'],
|
|
|
1163 |
|
1164 |
with col_prompt_main_right:
|
1165 |
if st.session_state['user_clicked_load_prompt_yaml'] is None: # see if user has loaded a yaml to edit
|
1166 |
+
st.session_state['show_prompt_name_e'] = f"Prompt Status :arrow_forward: Building prompt from scratch"
|
1167 |
if st.session_state['new_prompt_yaml_filename']:
|
1168 |
+
st.session_state['show_prompt_name_w'] = f"New Prompt Name :arrow_forward: {st.session_state['new_prompt_yaml_filename']}.yaml"
|
1169 |
else:
|
1170 |
+
st.session_state['show_prompt_name_w'] = f"New Prompt Name :arrow_forward: [PLEASE SET NAME]"
|
1171 |
else:
|
1172 |
+
st.session_state['show_prompt_name_e'] = f"Prompt Status: Editing :arrow_forward: {st.session_state['selected_yaml_file']}"
|
1173 |
if st.session_state['new_prompt_yaml_filename']:
|
1174 |
+
st.session_state['show_prompt_name_w'] = f"New Prompt Name :arrow_forward: {st.session_state['new_prompt_yaml_filename']}.yaml"
|
1175 |
else:
|
1176 |
+
st.session_state['show_prompt_name_w'] = f"New Prompt Name :arrow_forward: [PLEASE SET NAME]"
|
1177 |
|
1178 |
st.subheader(f'Full Prompt')
|
1179 |
st.write(st.session_state['show_prompt_name_e'])
|
1180 |
st.write(st.session_state['show_prompt_name_w'])
|
1181 |
+
st.write("---")
|
1182 |
st.session_state['prompt_info'] = {
|
1183 |
'prompt_author': st.session_state['prompt_author'],
|
1184 |
'prompt_author_institution': st.session_state['prompt_author_institution'],
|