nikhilkomakula commited on
Commit
b1bcc1e
·
1 Parent(s): 2e9cc4e

Added Colon Escaping

Browse files
src/generation/generate_response.py CHANGED
@@ -106,7 +106,7 @@ def generate_response_streamlit(message: str, history: Optional[dict]):
106
  """
107
 
108
  response = generate_response(message)
109
- response = response.replace("$", "\$").replace("\n", " \n")
110
  for word in response.split(" "):
111
  yield word + " "
112
  time.sleep(0.05)
 
106
  """
107
 
108
  response = generate_response(message)
109
+ response = response.replace("$", "\$").replace(":", "\:").replace("\n", " \n")
110
  for word in response.split(" "):
111
  yield word + " "
112
  time.sleep(0.05)