ambreshrc commited on
Commit
38861df
1 Parent(s): 3e815a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -92,16 +92,16 @@ def btTranslator(docxfile):
92
  #return translated_text
93
  st.title('Translator App')
94
  st.markdown("Translate from Docx file")
95
- st.sidebar.subheader("File Upload")
96
 
97
- datas=st.sidebar.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.sidebar.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')
107
 
 
92
  #return translated_text
93
  st.title('Translator App')
94
  st.markdown("Translate from Docx file")
95
+ 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')
107