ambreshrc commited on
Commit
6cbbe03
1 Parent(s): 018e211

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- binary_output = BytesIO()
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: