andreska commited on
Commit
5b8c9a0
·
verified ·
1 Parent(s): 52ef193

Changed output text to always display last question and answer at top

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def handle_submit():
63
  )
64
 
65
  answer = completion.choices[0].message['content']
66
- st.session_state.conversation += f"<p><strong>User:</strong> {user_input}</p><p><strong>Adrega AI:</strong> {answer}</p>"
67
  else:
68
  st.write("Please enter a question.")
69
 
 
63
  )
64
 
65
  answer = completion.choices[0].message['content']
66
+ st.session_state.conversation = f"<p><strong>User:</strong> {user_input}</p><p><strong>Adrega AI:</strong> {answer}</p>" + st.session_state.conversation
67
  else:
68
  st.write("Please enter a question.")
69