Spaces:
Sleeping
Sleeping
snoop2head
commited on
Commit
·
8ee74be
1
Parent(s):
2f5e2db
hotfix for input
Browse files
app.py
CHANGED
@@ -22,7 +22,6 @@ st.write("Braille Pattern Conversion")
|
|
22 |
|
23 |
|
24 |
default_value = '⠍⠗⠠⠪⠋⠕⠀⠘⠪⠐⠗⠒⠊⠕⠐⠀⠘⠮⠐⠍⠨⠟⠀⠚⠣⠕⠚⠕⠂'
|
25 |
-
default_value += "</s>"
|
26 |
src_text = st.text_area(
|
27 |
"번역하고 싶은 문장을 입력하세요:",
|
28 |
default_value,
|
@@ -37,7 +36,7 @@ if src_text == "":
|
|
37 |
st.warning("Please **enter text** for translation")
|
38 |
else:
|
39 |
# translate into english sentence
|
40 |
-
|
41 |
translation_result = model.generate(
|
42 |
tokenizer(
|
43 |
src_text,
|
|
|
22 |
|
23 |
|
24 |
default_value = '⠍⠗⠠⠪⠋⠕⠀⠘⠪⠐⠗⠒⠊⠕⠐⠀⠘⠮⠐⠍⠨⠟⠀⠚⠣⠕⠚⠕⠂'
|
|
|
25 |
src_text = st.text_area(
|
26 |
"번역하고 싶은 문장을 입력하세요:",
|
27 |
default_value,
|
|
|
36 |
st.warning("Please **enter text** for translation")
|
37 |
else:
|
38 |
# translate into english sentence
|
39 |
+
src_text += "</s>"
|
40 |
translation_result = model.generate(
|
41 |
tokenizer(
|
42 |
src_text,
|