Skip to content

Commit

Permalink
Update royal_game_6_experimental_layout.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Hutchinson committed Jun 22, 2023
1 parent 5fddd2d commit 5d35184
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions royal_game_6_experimental_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,20 +718,20 @@ def count_tokens(chain, query):
st.write(conversation_string)
pass
#### oRIGINAL - DON'T DELETE
#with response_container:
# if st.session_state['responses']:
# for i in range(len(st.session_state['responses'])):
# message(st.session_state['responses'][i],key=str(i))
# if i < len(st.session_state['requests']):
# message(st.session_state["requests"][i], is_user=True,key=str(i)+ '_user')
with response_container:
if st.session_state['responses']:
for i in range(len(st.session_state['responses'])):
message(st.session_state['responses'][i],key=str(i))
if i < len(st.session_state['requests']):
message(st.session_state["requests"][i], is_user=True,key=str(i)+ '_user')

#with response_container:
with response_container:
if st.session_state['respones']:
for i in range(len(st.session_state['requests'])): # Iterate over the user requests instead of the bot responses
message(st.session_state["requests"][i], is_user=True, key=str(i) + '_user') # Display the user request
if i < len(st.session_state['responses']): # Check if a corresponding bot response exists
message(st.session_state['responses'][i], key=str(i)) # Display the bot response
#with response_container:
# if st.session_state['requests']:
# for i in range(len(st.session_state['requests'])): # Iterate over the user requests instead of the bot responses
# message(st.session_state["requests"][i], is_user=True, key=str(i) + '_user') # Display the user request
# if i < len(st.session_state['responses']): # Check if a corresponding bot response exists
# message(st.session_state['responses'][i], key=str(i)) # Display the bot response



Expand Down

0 comments on commit 5d35184

Please sign in to comment.