georad commited on
Commit
beba653
Β·
verified Β·
1 Parent(s): e990a76

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +2 -6
pages/type_text.py CHANGED
@@ -212,7 +212,7 @@ if INTdesc_input is not None and st.button(":blue[Map to SBS codes]", key="run_s
212
  )
213
  st.write(outputs[0]["generated_text"][-1]["content"])
214
  st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
215
- #components.html(scroll_script, height=0, width=0)
216
 
217
  bs, b1, b2, b3, bLast = st.columns([0.75, 1.5, 1.5, 1.5, 0.75])
218
  with b1:
@@ -223,8 +223,4 @@ if INTdesc_input is not None and st.button(":blue[Map to SBS codes]", key="run_s
223
  textbutton = st.download_button(label="πŸ“₯ Download .txt", data=convert_df(dfALL), file_name= "results.text", mime='text/plain', key='text_b')
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')
227
-
228
- # Add a dummy element at the bottom
229
- # st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
230
- # components.html(scroll_script, height=0, width=0)
 
212
  )
213
  st.write(outputs[0]["generated_text"][-1]["content"])
214
  st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
215
+ components.html(scroll_script, height=0, width=0)
216
 
217
  bs, b1, b2, b3, bLast = st.columns([0.75, 1.5, 1.5, 1.5, 0.75])
218
  with b1:
 
223
  textbutton = st.download_button(label="πŸ“₯ Download .txt", data=convert_df(dfALL), file_name= "results.text", mime='text/plain', key='text_b')
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')