Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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][
|
| 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")
|