Update app.py
Browse files
app.py
CHANGED
@@ -7,5 +7,11 @@ st.success('Loaded!')
|
|
7 |
|
8 |
text = st.text_area('Enter Hebrew text')
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
if text:
|
11 |
-
st.write(u(text))
|
|
|
7 |
|
8 |
text = st.text_area('Enter Hebrew text')
|
9 |
|
10 |
+
kwargs = {
|
11 |
+
'v_thresh': st.sidebar.slider("Vowel addition threshold", min_value=0, max_value=1, value=0.5),
|
12 |
+
'd_thresh': st.sidebar.slider("Deletion threshold", min_value=0, max_value=1, value=0.5),
|
13 |
+
'o_thresh': st.sidebar.slider("Other diacritic threshold", min_value=0, max_value=1, value=0.5)
|
14 |
+
}
|
15 |
+
|
16 |
if text:
|
17 |
+
st.write(u(text, **kwargs))
|