Wajahat698 commited on
Commit
6fcf6f6
·
verified ·
1 Parent(s): d7b3c8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -366,9 +366,9 @@ for message in st.session_state.chat_history:
366
 
367
  # Chat input
368
  if not st.session_state.chat_active:
369
- content_placeholder = st.empty()
370
 
371
- content_placeholder.markdown("""
372
  <script>
373
  document.addEventListener('DOMContentLoaded', (event) => {
374
  const svgs = document.querySelectorAll('svg');
@@ -464,8 +464,7 @@ if not st.session_state.chat_active:
464
 
465
  """, unsafe_allow_html=True)
466
 
467
- else:
468
- content_placeholder.empty()
469
 
470
  def clean_text_for_markdown(text):
471
  # Ensure consistent spacing and remove any unwanted characters
 
366
 
367
  # Chat input
368
  if not st.session_state.chat_active:
369
+
370
 
371
+ st.markdown("""
372
  <script>
373
  document.addEventListener('DOMContentLoaded', (event) => {
374
  const svgs = document.querySelectorAll('svg');
 
464
 
465
  """, unsafe_allow_html=True)
466
 
467
+
 
468
 
469
  def clean_text_for_markdown(text):
470
  # Ensure consistent spacing and remove any unwanted characters