prakharg24 commited on
Commit
3232101
·
verified ·
1 Parent(s): c4fb11f

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -51,8 +51,8 @@ def add_fadein_text(paragraphs):
51
 
52
  # Reveal paragraphs sequentially
53
  for i, p in enumerate(paragraphs):
54
- placeholders[i].markdown(f"<div class='fade-in'>{p[0]}</div>", unsafe_allow_html=True)
55
- time.sleep(p[1]) # delay (seconds) before showing next one
56
 
57
  def add_instruction_text(text_to_display):
58
  st.markdown(f"<div style='text-align: center; font-size:18px; color:gray;'>{text_to_display}</div>", unsafe_allow_html=True)
 
51
 
52
  # Reveal paragraphs sequentially
53
  for i, p in enumerate(paragraphs):
54
+ placeholders[i].markdown(f"<div class='fade-in' style='animation-delay:{p[1]}s'>{p[0]}</div>", unsafe_allow_html=True)
55
+ # time.sleep(p[1]) # delay (seconds) before showing next one
56
 
57
  def add_instruction_text(text_to_display):
58
  st.markdown(f"<div style='text-align: center; font-size:18px; color:gray;'>{text_to_display}</div>", unsafe_allow_html=True)