Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -98,9 +98,9 @@ datas=st.file_uploader("Original File")
|
|
98 |
#data=getText("C:\Users\Ambresh C\Desktop\Python Files\Translators\Trail Doc of 500 words.docx")
|
99 |
#if datas :
|
100 |
#if st.button(label='Data Process'):
|
|
|
101 |
if st.button(label='Translate'):
|
102 |
-
|
103 |
-
f3=btTranslator(datas).save(binary_output)
|
104 |
|
105 |
st.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())
|
106 |
#else:
|
|
|
98 |
#data=getText("C:\Users\Ambresh C\Desktop\Python Files\Translators\Trail Doc of 500 words.docx")
|
99 |
#if datas :
|
100 |
#if st.button(label='Data Process'):
|
101 |
+
binary_output = BytesIO()
|
102 |
if st.button(label='Translate'):
|
103 |
+
btTranslator(datas).save(binary_output)
|
|
|
104 |
|
105 |
st.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())
|
106 |
#else:
|