duongthienz commited on
Commit
e259f0f
·
verified ·
1 Parent(s): 2d04de0

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +0 -19
ui.py CHANGED
@@ -292,25 +292,6 @@ def render_speaker_samples_tab(speakerNames, raw_to_display, currFile):
292
  if not show_input:
293
  new_name = chosen
294
 
295
- # Hide Streamlit's built-in "Press Enter to submit form" hint
296
- # and replace it. Targets both <small> (older Streamlit) and
297
- # <p> (newer Streamlit). font-size:0 collapses the original;
298
- # ::after injects the replacement.
299
- st.markdown(
300
- "<style>"
301
- "div[data-testid='stForm'] small,"
302
- "div[data-testid='stForm'] p:last-of-type {"
303
- " font-size: 0 !important;"
304
- "}"
305
- "div[data-testid='stForm'] small::after,"
306
- "div[data-testid='stForm'] p:last-of-type::after {"
307
- " content: 'Press Enter to apply';"
308
- " font-size: 0.8rem;"
309
- " color: gray;"
310
- "}"
311
- "</style>",
312
- unsafe_allow_html=True,
313
- )
314
  with st.form(key=form_key, border=False):
315
  if not history:
316
  # No history — plain text input is the only field
 
292
  if not show_input:
293
  new_name = chosen
294
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  with st.form(key=form_key, border=False):
296
  if not history:
297
  # No history — plain text input is the only field