oscarvillafuerte
commited on
Commit
•
856de38
1
Parent(s):
c1d89a9
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,9 @@ if st.button("Traducir"):
|
|
23 |
with st.spinner("Traduciendo..."):
|
24 |
time.sleep(2)
|
25 |
if textoingresado:
|
26 |
-
textotraducido= traductor(textoingresado, max_length=500)[0][
|
|
|
|
|
27 |
st.succes("Texto Traducido : {textotraducido}")
|
28 |
else:
|
29 |
st.warning("Ingrese un texto")
|
|
|
23 |
with st.spinner("Traduciendo..."):
|
24 |
time.sleep(2)
|
25 |
if textoingresado:
|
26 |
+
textotraducido= traductor(textoingresado, max_length=500)[0]['textotraducido']
|
27 |
+
|
28 |
+
|
29 |
st.succes("Texto Traducido : {textotraducido}")
|
30 |
else:
|
31 |
st.warning("Ingrese un texto")
|