arthurcarvalho commited on
Commit
7886802
1 Parent(s): 0ba26be

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ if prompt := st.chat_input("How can I help you today?"):
35
  ],
36
  stream=True,
37
  ):
38
- full_response += response.choices[0].delta.get("content", "").replace('$','\\$')
39
  message_placeholder.markdown(full_response + "▌")
40
  message_placeholder.markdown(full_response)
41
  print(full_response)
 
35
  ],
36
  stream=True,
37
  ):
38
+ full_response += response.choices[0].delta.get("content", "").replace('\\$','$').replace('$','\\$')
39
  message_placeholder.markdown(full_response + "▌")
40
  message_placeholder.markdown(full_response)
41
  print(full_response)