wop commited on
Commit
4eb73c5
·
verified ·
1 Parent(s): 769a702

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,9 +27,9 @@ def animate_typing(text):
27
  animated_text = ""
28
  for char in text:
29
  animated_text += char
30
- st.write(animated_text, end='', flush=True)
31
  time.sleep(0.05)
32
- st.write("")
33
 
34
  def main():
35
  st.title("Question Answering System")
 
27
  animated_text = ""
28
  for char in text:
29
  animated_text += char
30
+ st.write(animated_text, end='') # Suppress newline
31
  time.sleep(0.05)
32
+ st.write("") # Write newline after animation completes
33
 
34
  def main():
35
  st.title("Question Answering System")