Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -100,8 +100,8 @@ datas=st.file_uploader("Original File")
|
|
100 |
#if st.button(label='Data Process'):
|
101 |
binary_output = BytesIO()
|
102 |
if st.button(label='Translate'):
|
103 |
-
st.spinner('Waiting...')
|
104 |
-
|
105 |
st.success("Translated")
|
106 |
|
107 |
st.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())
|
|
|
100 |
#if st.button(label='Data Process'):
|
101 |
binary_output = BytesIO()
|
102 |
if st.button(label='Translate'):
|
103 |
+
st.spinner('Waiting...')
|
104 |
+
btTranslator(datas).save(binary_output)
|
105 |
st.success("Translated")
|
106 |
|
107 |
st.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())
|