Spaces:
Runtime error
Runtime error
Arnaldo Mont'Alvao
commited on
Commit
•
849d2cc
1
Parent(s):
67fc851
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,8 @@ st.write('Enter a sentence here and we will translate it to Portuguese!')
|
|
18 |
txt_input = st.text_input('Enter text here:')
|
19 |
|
20 |
#When text is entered, run model
|
21 |
-
if st.button('Submit'):
|
|
|
22 |
translation = translator(txt_input)
|
23 |
|
24 |
#Display translation
|
|
|
18 |
txt_input = st.text_input('Enter text here:')
|
19 |
|
20 |
#When text is entered, run model
|
21 |
+
if st.button('Submit'):
|
22 |
+
#Run Translation
|
23 |
translation = translator(txt_input)
|
24 |
|
25 |
#Display translation
|