Update pages/type_text.py
Browse files- pages/type_text.py +4 -1
pages/type_text.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import streamlit.components.v1 as components
|
|
|
3 |
import pandas as pd
|
4 |
from io import StringIO
|
5 |
import json
|
@@ -287,7 +288,8 @@ if INTdesc_input is not None and st.button(":blue[Map to SBS codes]", key="run_s
|
|
287 |
dfALL = pd.concat([dfALL, pd.DataFrame([dictA])], ignore_index=True)
|
288 |
|
289 |
st.dataframe(data=dfALL, hide_index=True)
|
290 |
-
|
|
|
291 |
#auto_scroll_to_bottom()
|
292 |
|
293 |
display_format = "ask REASONING MODEL: Which, if any, of the following SBS descriptions corresponds best to " + INTdesc_input +"? "
|
@@ -312,6 +314,7 @@ if INTdesc_input is not None and st.button(":blue[Map to SBS codes]", key="run_s
|
|
312 |
max_new_tokens=256,
|
313 |
)
|
314 |
st.write(outputs[0]["generated_text"][-1]["content"])
|
|
|
315 |
scrollToBottom()
|
316 |
#auto_scroll_to_bottom()
|
317 |
|
|
|
1 |
import streamlit as st
|
2 |
import streamlit.components.v1 as components
|
3 |
+
from streamlit_shortcuts import add_keyboard_shortcuts
|
4 |
import pandas as pd
|
5 |
from io import StringIO
|
6 |
import json
|
|
|
288 |
dfALL = pd.concat([dfALL, pd.DataFrame([dictA])], ignore_index=True)
|
289 |
|
290 |
st.dataframe(data=dfALL, hide_index=True)
|
291 |
+
add_keyboard_shortcuts({'Ctrl+End': 'Map to SBS codes',})
|
292 |
+
#scrollToBottom()
|
293 |
#auto_scroll_to_bottom()
|
294 |
|
295 |
display_format = "ask REASONING MODEL: Which, if any, of the following SBS descriptions corresponds best to " + INTdesc_input +"? "
|
|
|
314 |
max_new_tokens=256,
|
315 |
)
|
316 |
st.write(outputs[0]["generated_text"][-1]["content"])
|
317 |
+
#add_keyboard_shortcuts({'Ctrl+End': 'Map to SBS codes',})
|
318 |
scrollToBottom()
|
319 |
#auto_scroll_to_bottom()
|
320 |
|