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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -96,11 +96,12 @@ st.subheader("File Upload")
96
 
97
  datas=st.file_uploader("Original File")
98
  #data=getText("C:\Users\Ambresh C\Desktop\Python Files\Translators\Trail Doc of 500 words.docx")
99
- binary_output = BytesIO()
100
- f3=btTranslator(datas).save(binary_output)
101
-
102
  #if datas :
103
  #if st.button(label='Data Process'):
 
 
 
 
104
  st.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())
105
  #else:
106
  # st.text('Upload File and Start the process')
 
96
 
97
  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:
107
  # st.text('Upload File and Start the process')