mikepastor11 commited on
Commit
18768c0
1 Parent(s): 7a79358

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -122,14 +122,14 @@ def process_user_question(user_question):
122
  st.session_state.chat_history = response['chat_history']
123
 
124
  # st.empty()
125
- user_string = ["1", "2" ]
126
 
127
  for i, message in enumerate(st.session_state.chat_history):
128
  if i % 2 == 0:
129
  st.write(user_template.replace(
130
  "{{MSG}}", message.content), unsafe_allow_html=True)
131
 
132
- user_string.append( message.content )
133
 
134
  else:
135
  st.write(bot_template.replace(
@@ -148,7 +148,7 @@ def process_user_question(user_question):
148
  * 3
149
  )
150
 
151
- html(lorem, height=100, scrolling=True)
152
  html(user_string, height=100, scrolling=True)
153
 
154
 
 
122
  st.session_state.chat_history = response['chat_history']
123
 
124
  # st.empty()
125
+ user_string = ""
126
 
127
  for i, message in enumerate(st.session_state.chat_history):
128
  if i % 2 == 0:
129
  st.write(user_template.replace(
130
  "{{MSG}}", message.content), unsafe_allow_html=True)
131
 
132
+ user_string += ( "<p>" + message.content + "<\p>" )
133
 
134
  else:
135
  st.write(bot_template.replace(
 
148
  * 3
149
  )
150
 
151
+ # html(lorem, height=100, scrolling=True)
152
  html(user_string, height=100, scrolling=True)
153
 
154