Spaces:
Sleeping
Sleeping
Changed output text to always display last question and answer at top
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def handle_submit():
|
|
| 63 |
)
|
| 64 |
|
| 65 |
answer = completion.choices[0].message['content']
|
| 66 |
-
st.session_state.conversation
|
| 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 |
|