Skip to content

Commit

Permalink
fix: UI titles
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostleek committed Feb 4, 2024
1 parent 7bee12b commit 8cbdea3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ def setup_sidebar():

if st.session_state.get("is_admin", False):
with st.sidebar:
st.title("Admin Panel")
st.title("Custom Instructions")
st.session_state['existing_instructions'] = get_latest_instructions()
custom_instructions = st.text_area("Custom Instructions", value=st.session_state['existing_instructions'], height=custominstructions_area_height)
custom_instructions = st.text_area("Edit and save to guide interactions", value=st.session_state['existing_instructions'], height=custominstructions_area_height)

if st.button("Save Instructions"):
update_instructions(custom_instructions)
st.success("Instructions updated successfully")
st.experimental_rerun()


st.title("Chatlog")
csv_data = export_chat_logs_to_csv()
if csv_data:
st.download_button(label="Download Chat Logs", data=csv_data, file_name='chat_logs.csv', mime='text/csv',)
Expand Down

0 comments on commit 8cbdea3

Please sign in to comment.