emvecchi commited on
Commit
e1e2b49
·
verified ·
1 Parent(s): 23a2c4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -333,16 +333,16 @@ def navigate(index_change):
333
  # https://discuss.streamlit.io/t/text-input-how-to-disable-press-enter-to-apply/14457/6
334
  components.html(
335
  """
336
- <script>
337
- const inputs = window.parent.document.querySelectorAll('input');
338
- inputs.forEach(input => {
339
- input.addEventListener('keydown', function(event) {
340
- if (event.key === 'Enter') {
341
- event.preventDefault();
342
- }
343
- });
344
- });
345
- </script>
346
  """,
347
  height=0
348
  )
@@ -507,12 +507,12 @@ st.title("Moderator Intervention Prediction")
507
 
508
 
509
  st.markdown(
510
- """<style>
511
- div[data-testid="stMarkdownContainer"] > p {
512
- font-size: 1rem;
513
- }
514
- section.main > div {max-width:60rem}
515
- </style>
516
  """, unsafe_allow_html=True)
517
 
518
 
@@ -615,11 +615,11 @@ if 0 <= st.session_state.current_index < len(st.session_state.data):
615
 
616
 
617
  st.markdown(
618
- """<style>
619
- div[data-testid="InputInstructions"] {
620
- visibility: hidden;
621
- }
622
- </style>""", unsafe_allow_html=True
623
  )
624
 
625
  """
 
333
  # https://discuss.streamlit.io/t/text-input-how-to-disable-press-enter-to-apply/14457/6
334
  components.html(
335
  """
336
+ # <script>
337
+ # const inputs = window.parent.document.querySelectorAll('input');
338
+ # inputs.forEach(input => {
339
+ # input.addEventListener('keydown', function(event) {
340
+ # if (event.key === 'Enter') {
341
+ # event.preventDefault();
342
+ # }
343
+ # });
344
+ # });
345
+ # </script>
346
  """,
347
  height=0
348
  )
 
507
 
508
 
509
  st.markdown(
510
+ # """<style>
511
+ #div[data-testid="stMarkdownContainer"] > p {
512
+ # font-size: 1rem;
513
+ #}
514
+ # section.main > div {max-width:60rem}
515
+ # </style>
516
  """, unsafe_allow_html=True)
517
 
518
 
 
615
 
616
 
617
  st.markdown(
618
+ # """<style>
619
+ # div[data-testid="InputInstructions"] {
620
+ # visibility: hidden;
621
+ # }
622
+ # </style>""", unsafe_allow_html=True
623
  )
624
 
625
  """