Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,11 +105,11 @@ binary_output = BytesIO()
|
|
| 105 |
if st.button(label='Translate'):
|
| 106 |
st.spinner('Waiting...')
|
| 107 |
btTranslator(datas).save(binary_output)
|
|
|
|
| 108 |
st.success("Translated")
|
| 109 |
|
| 110 |
st.download_button(label='Download Translated File',file_name=(f"{name}_Translated.docx"), data=binary_output.getvalue())
|
| 111 |
#files.save(f"{name}_Translated.docx")
|
| 112 |
-
binary_output.getvalue()
|
| 113 |
#else:
|
| 114 |
# st.text('Upload File and Start the process')
|
| 115 |
|
|
|
|
| 105 |
if st.button(label='Translate'):
|
| 106 |
st.spinner('Waiting...')
|
| 107 |
btTranslator(datas).save(binary_output)
|
| 108 |
+
binary_output.getbuffer()
|
| 109 |
st.success("Translated")
|
| 110 |
|
| 111 |
st.download_button(label='Download Translated File',file_name=(f"{name}_Translated.docx"), data=binary_output.getvalue())
|
| 112 |
#files.save(f"{name}_Translated.docx")
|
|
|
|
| 113 |
#else:
|
| 114 |
# st.text('Upload File and Start the process')
|
| 115 |
|