mikepastor11 commited on
Commit
85eb1e5
1 Parent(s): 35a5ffa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -28
app.py CHANGED
@@ -128,44 +128,21 @@ def process_user_question(user_question):
128
 
129
  for i, message in enumerate(st.session_state.chat_history):
130
  if i % 2 == 0:
131
- st.write(user_template.replace(
132
- "{{MSG}}", message.content), unsafe_allow_html=True)
133
 
134
  results_string += ( "<p>" + message.content + "</p>" )
135
 
136
  else:
137
- st.write(bot_template.replace(
138
- "{{MSG}}", message.content), unsafe_allow_html=True)
139
 
140
  results_string += ( "<p>" + message.content + "</p>" )
141
 
142
 
143
-
144
- lorem = (
145
- """
146
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl nec
147
- vulputate lacinia, nunc nisl aliquam mauris, eget aliquet nisl nisl et nunc.
148
- Sed euismod, nisl nec vulputate lacinia, nunc nisl aliquam mauris, eget aliquet.</p>
149
- """
150
- * 3
151
- )
152
-
153
- # html(lorem, height=100, scrolling=True)
154
- html(results_string, height=100, scrolling=True)
155
 
156
 
157
- # with st.container() as scrollable_container:
158
- # # Your content to be scrolled goes here
159
- # for i in range(100):
160
- # st.write(f"Line {i}")
161
-
162
- # st.markdown(f"""<style>
163
- # .stApp #scrollable_container {{
164
- # overflow-y: scroll;
165
- # height: 300px;
166
- # }}
167
- # </style>""", unsafe_allow_html=True)
168
-
169
  ###################################################################################
170
  def main():
171
 
 
128
 
129
  for i, message in enumerate(st.session_state.chat_history):
130
  if i % 2 == 0:
131
+ # st.write(user_template.replace(
132
+ # "{{MSG}}", message.content), unsafe_allow_html=True)
133
 
134
  results_string += ( "<p>" + message.content + "</p>" )
135
 
136
  else:
137
+ # st.write(bot_template.replace(
138
+ # "{{MSG}}", message.content), unsafe_allow_html=True)
139
 
140
  results_string += ( "<p>" + message.content + "</p>" )
141
 
142
 
143
+ html(results_string, height=200, scrolling=True)
 
 
 
 
 
 
 
 
 
 
 
144
 
145
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  ###################################################################################
147
  def main():
148