Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,10 @@ option = st.sidebar.selectbox(
|
|
35 |
st.sidebar.write("You can use the examples above, but for best effect: Copy text from the Internet, and remove spaces, puctation, cases etc. Try to restore the text.")
|
36 |
|
37 |
|
38 |
-
button1 = st.button("
|
39 |
text = st.text_area(f"Corrupted text: ",max_chars=1000, value=option)
|
40 |
|
41 |
-
button2 = st.button("
|
42 |
button3 = st.button("remove spaces", key="button3", on_click=spaces)
|
43 |
|
44 |
if button2:
|
@@ -63,7 +63,7 @@ with col3:
|
|
63 |
st.button('3')
|
64 |
|
65 |
|
66 |
-
if
|
67 |
model, tokenizer = load_model()
|
68 |
translated_text = deuncase(model, tokenizer, text)
|
69 |
st.write(translated_text[0] if translated_text else "Unknown Error Translating Text")
|
|
|
35 |
st.sidebar.write("You can use the examples above, but for best effect: Copy text from the Internet, and remove spaces, puctation, cases etc. Try to restore the text.")
|
36 |
|
37 |
|
38 |
+
button1 = st.button("button1", "button1")
|
39 |
text = st.text_area(f"Corrupted text: ",max_chars=1000, value=option)
|
40 |
|
41 |
+
button2 = st.button("button2", "button2")
|
42 |
button3 = st.button("remove spaces", key="button3", on_click=spaces)
|
43 |
|
44 |
if button2:
|
|
|
63 |
st.button('3')
|
64 |
|
65 |
|
66 |
+
if button1:
|
67 |
model, tokenizer = load_model()
|
68 |
translated_text = deuncase(model, tokenizer, text)
|
69 |
st.write(translated_text[0] if translated_text else "Unknown Error Translating Text")
|