malper commited on
Commit
d4acaf4
1 Parent(s): fe2b316

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -6,6 +6,7 @@ with st.spinner('Loading UNIKUD framework...'):
6
  st.success('Loaded!')
7
 
8
  text = st.text_area('Enter Hebrew text and press ctrl/command+enter to add nikud:')
 
9
 
10
  kwargs = {
11
  'v_thresh': st.sidebar.slider("Vowel addition threshold", min_value=0., max_value=1., value=0.5),
 
6
  st.success('Loaded!')
7
 
8
  text = st.text_area('Enter Hebrew text and press ctrl/command+enter to add nikud:')
9
+ text = text.replace('\r', '').replace('\n', ' ')
10
 
11
  kwargs = {
12
  'v_thresh': st.sidebar.slider("Vowel addition threshold", min_value=0., max_value=1., value=0.5),