georad commited on
Commit
6bde53e
Β·
verified Β·
1 Parent(s): 4c3c906

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. 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)