diff options
author | mache102 <bee365go@gmail.com> | 2023-05-01 08:43:17 +0200 |
---|---|---|
committer | mache102 <bee365go@gmail.com> | 2023-05-01 08:43:17 +0200 |
commit | 2140fc87cb8615a650711053f0afbbe4b1fd8553 (patch) | |
tree | 8b14e9f09a8ddb36782f737e924b92c776e77acb /gui/streamlit_chat_app.py | |
parent | Update README.md (diff) | |
download | gpt4free-2140fc87cb8615a650711053f0afbbe4b1fd8553.tar gpt4free-2140fc87cb8615a650711053f0afbbe4b1fd8553.tar.gz gpt4free-2140fc87cb8615a650711053f0afbbe4b1fd8553.tar.bz2 gpt4free-2140fc87cb8615a650711053f0afbbe4b1fd8553.tar.lz gpt4free-2140fc87cb8615a650711053f0afbbe4b1fd8553.tar.xz gpt4free-2140fc87cb8615a650711053f0afbbe4b1fd8553.tar.zst gpt4free-2140fc87cb8615a650711053f0afbbe4b1fd8553.zip |
Diffstat (limited to 'gui/streamlit_chat_app.py')
-rw-r--r-- | gui/streamlit_chat_app.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/streamlit_chat_app.py b/gui/streamlit_chat_app.py index 6abc9caf..50d8c5b9 100644 --- a/gui/streamlit_chat_app.py +++ b/gui/streamlit_chat_app.py @@ -105,7 +105,7 @@ st.sidebar.header("Conversation History") for idx, conversation in enumerate(st.session_state.conversations): if st.sidebar.button(f"Conversation {idx + 1}: {conversation['user_inputs'][0]}", key=f"sidebar_btn_{idx}"): st.session_state['selected_conversation'] = idx - st.session_state['current_conversation'] = st.session_state.conversations[idx] + st.session_state['current_conversation'] = conversation if st.session_state['selected_conversation'] is not None: conversation_to_display = st.session_state.conversations[st.session_state['selected_conversation']] @@ -115,4 +115,4 @@ else: if conversation_to_display['generated_responses']: for i in range(len(conversation_to_display['generated_responses']) - 1, -1, -1): message(conversation_to_display["generated_responses"][i], key=f"display_generated_{i}") - message(conversation_to_display['user_inputs'][i], is_user=True, key=f"display_user_{i}") + message(conversation_to_display['user_inputs'][i], is_user=True, key=f"display_user_{i}")
\ No newline at end of file |