kastan commited on
Commit
6903e33
β€’
1 Parent(s): c49165a

add <br> removal back in

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -144,9 +144,9 @@ def clean_chat_response(chat: List[Tuple[str, str]]) -> List[Tuple[str, str]]:
144
  ''' Not perfect, but much better at removing all the crazy newlines. '''
145
  cleaned_chat = []
146
  for human_chat, bot_chat in chat:
147
- # human_chat = human_chat.replace("<br>", "")
148
  human_chat = human_chat.replace("\n\n", "\n")
149
- # bot_chat = bot_chat.replace("<br>", "")
150
  bot_chat = bot_chat.replace("\n\n", "\n")
151
  cleaned_chat.append( (human_chat, bot_chat) )
152
  return cleaned_chat
@@ -201,8 +201,8 @@ def radio_on_change(
201
  )
202
 
203
 
204
- title = """<h1 align="center">πŸ”₯Teaching Assistant Chatbot"""
205
- description = """
206
  """
207
 
208
  openchat_disclaimer = """
 
144
  ''' Not perfect, but much better at removing all the crazy newlines. '''
145
  cleaned_chat = []
146
  for human_chat, bot_chat in chat:
147
+ human_chat = human_chat.replace("<br>", "")
148
  human_chat = human_chat.replace("\n\n", "\n")
149
+ bot_chat = bot_chat.replace("<br>", "")
150
  bot_chat = bot_chat.replace("\n\n", "\n")
151
  cleaned_chat.append( (human_chat, bot_chat) )
152
  return cleaned_chat
 
201
  )
202
 
203
 
204
+ title = """<h1 align="center">🧠 AI Teaching Assistant"""
205
+ description = """Better than Google at answering your questions!
206
  """
207
 
208
  openchat_disclaimer = """