Update pages/type_text.py
Browse files- pages/type_text.py +4 -2
pages/type_text.py
CHANGED
|
@@ -22,8 +22,6 @@ def make_spinner(text = "In progress..."):
|
|
| 22 |
with st.spinner(text):
|
| 23 |
yield
|
| 24 |
|
| 25 |
-
# Add a dummy element at the bottom
|
| 26 |
-
st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
|
| 27 |
|
| 28 |
# JavaScript to scroll the dummy element into view
|
| 29 |
scroll_script = """
|
|
@@ -224,3 +222,7 @@ if INTdesc_input is not None and st.button(":blue[Map to SBS codes]", key="run_s
|
|
| 224 |
with b3:
|
| 225 |
#jsonbutton = download_button(results, "results.json", "π₯ Download .json")
|
| 226 |
jsonbutton = st.download_button(label="π₯ Download .json", data=convert_json(dfALL), file_name= "results.json", mime='application/json', key='json_b')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
with st.spinner(text):
|
| 23 |
yield
|
| 24 |
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# JavaScript to scroll the dummy element into view
|
| 27 |
scroll_script = """
|
|
|
|
| 222 |
with b3:
|
| 223 |
#jsonbutton = download_button(results, "results.json", "π₯ Download .json")
|
| 224 |
jsonbutton = st.download_button(label="π₯ Download .json", data=convert_json(dfALL), file_name= "results.json", mime='application/json', key='json_b')
|
| 225 |
+
|
| 226 |
+
# Add a dummy element at the bottom
|
| 227 |
+
st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
|
| 228 |
+
components.html(scroll_script, height=0, width=0)
|