Spaces:
Runtime error
Runtime error
arthurcarvalho
commited on
Commit
•
7886802
1
Parent(s):
0ba26be
Upload app.py
Browse files
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)
|