wop commited on
Commit
aa1f96b
·
verified ·
1 Parent(s): ea33258

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -46,6 +46,8 @@ def typewriter(text: str, speed: int):
46
  curr_full_text = " ".join(tokens[:index])
47
  container.markdown(curr_full_text)
48
  time.sleep(1 / speed)
 
 
49
 
50
  def main():
51
  st.title("Near Instant Question Answering")
 
46
  curr_full_text = " ".join(tokens[:index])
47
  container.markdown(curr_full_text)
48
  time.sleep(1 / speed)
49
+ # JavaScript to scroll to the bottom of the page while typing
50
+ st.script("window.scrollTo(0, document.body.scrollHeight);")
51
 
52
  def main():
53
  st.title("Near Instant Question Answering")