wop commited on
Commit
3d1a501
1 Parent(s): aa1f96b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -47,7 +47,7 @@ def typewriter(text: str, speed: int):
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")
@@ -68,4 +68,3 @@ def main():
68
 
69
  if __name__ == "__main__":
70
  main()
71
-
 
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.write(f"<script>window.scrollTo(0, document.body.scrollHeight);</script>", unsafe_allow_html=True)
51
 
52
  def main():
53
  st.title("Near Instant Question Answering")
 
68
 
69
  if __name__ == "__main__":
70
  main()