Arnaldo Mont'Alvao commited on
Commit
42b5528
·
1 Parent(s): 04baa5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ 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)[0]
23
 
24
  #Display translation
25
  st.write(f'Translation: {translation}')
 
19
 
20
  #When text is entered, run model
21
  if st.button('Submit'):
22
+ translation = translator(txt_input)
23
 
24
  #Display translation
25
  st.write(f'Translation: {translation}')