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