Spaces:
Sleeping
Sleeping
Reverted part of the markdown update, to keep streaming updates to screen
Browse files
app.py
CHANGED
|
@@ -65,8 +65,8 @@ def handle_submit():
|
|
| 65 |
answer = ""
|
| 66 |
for chunk in response:
|
| 67 |
answer += chunk['choices'][0]['delta']['content']
|
| 68 |
-
|
| 69 |
-
|
| 70 |
st.session_state.conversation = f"<p>{answer}</p>" + st.session_state.conversation
|
| 71 |
|
| 72 |
else:
|
|
|
|
| 65 |
answer = ""
|
| 66 |
for chunk in response:
|
| 67 |
answer += chunk['choices'][0]['delta']['content']
|
| 68 |
+
placeholder.markdown(f'<div class="scrollable-div"><p>{answer}</p></div>', unsafe_allow_html=True)
|
| 69 |
+
|
| 70 |
st.session_state.conversation = f"<p>{answer}</p>" + st.session_state.conversation
|
| 71 |
|
| 72 |
else:
|