Spaces:
Runtime error
Runtime error
adding max chars to input
Browse files
app.py
CHANGED
@@ -30,7 +30,9 @@ remove_punct = st.checkbox(label="Remove punctuation", value=True)
|
|
30 |
input_str = st.text_area(
|
31 |
"Input text",
|
32 |
height=150,
|
33 |
-
value="ζ¬η₯ ι«ιΊ εδΊθ£ζθ¨γ δΌζε°ι¦, θͺ ζζη η‘ε£θ¨ιδΉεΎ, θΎζ½ ε η¦ εε§η«δ½θ
."
|
|
|
|
|
34 |
|
35 |
if remove_punct and input_str:
|
36 |
input_str = strip_input_str(input_str)
|
|
|
30 |
input_str = st.text_area(
|
31 |
"Input text",
|
32 |
height=150,
|
33 |
+
value="ζ¬η₯ ι«ιΊ εδΊθ£ζθ¨γ δΌζε°ι¦, θͺ ζζη η‘ε£θ¨ιδΉεΎ, θΎζ½ ε η¦ εε§η«δ½θ
.",
|
34 |
+
max_chars=500
|
35 |
+
)
|
36 |
|
37 |
if remove_punct and input_str:
|
38 |
input_str = strip_input_str(input_str)
|