Spaces:
Runtime error
Runtime error
Commit ·
bea0cb1
1
Parent(s): f72cb40
Upload app.py
Browse files34 unmodified lines3536373839404134 unmodified lines],stream=True,):full_response += response.choices[0].delta.get("content", "").replace('$','\$')message_placeholder.markdown(full_response + "▌")message_placeholder.markdown(full_response)st.session_state.messages.append({"role": "assistant", "content": full_response})34 unmodified lines35363738394041424334 unmodified lines],stream=True,):full_response += response.choices[0].delta.get("content", "")#message_placeholder.markdown(full_response + "▌")message_placeholder.write(full_response + "▌")#message_placeholder.markdown(full_response) #causes problems with responses having $, which is interpreted as equation in markdownmessage_placeholder.write(full_response + "▌")st.session_state.messages.append({"role": "assistant", "content": full_response})
app.py+5-3