Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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()
|
|