Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,11 @@ if button2:
|
|
45 |
|
46 |
st.text("Fixed text: ")
|
47 |
|
|
|
|
|
|
|
|
|
|
|
48 |
if text:
|
49 |
model, tokenizer = load_model()
|
50 |
translated_text = deuncase(model, tokenizer, text)
|
|
|
45 |
|
46 |
st.text("Fixed text: ")
|
47 |
|
48 |
+
form = st.form(key='my_form')
|
49 |
+
form.text_input(label='Enter some text')
|
50 |
+
submit_button = form.form_submit_button(label='Submit')
|
51 |
+
#https://blog.streamlit.io/introducing-submit-button-and-forms/
|
52 |
+
|
53 |
if text:
|
54 |
model, tokenizer = load_model()
|
55 |
translated_text = deuncase(model, tokenizer, text)
|