AlexD108 commited on
Commit
4717a24
1 Parent(s): 7a90c06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ if st.button("Traducir"):
25
  with st.spinner("Traduciendo..."):
26
  time.sleep(2)
27
  if textoingresado:
28
- textotraducido = traductor(textoingresado, max_length=500)[0]["textotraducido"]
29
  st.succes("Texto Traducido: {textotraducido}")
30
  else:
31
  st.warning("Ingrese un texto, no seas vivo")
 
25
  with st.spinner("Traduciendo..."):
26
  time.sleep(2)
27
  if textoingresado:
28
+ textotraducido = traductor(textoingresado, max_length=500)[0]['textotraducido']
29
  st.succes("Texto Traducido: {textotraducido}")
30
  else:
31
  st.warning("Ingrese un texto, no seas vivo")