ambreshrc commited on
Commit
22a6b7a
1 Parent(s): 6cbbe03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -100,7 +100,9 @@ datas=st.file_uploader("Original File")
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:
 
100
  #if st.button(label='Data Process'):
101
  binary_output = BytesIO()
102
  if st.button(label='Translate'):
103
+ st.spinner('Waiting...'):
104
+ btTranslator(datas).save(binary_output)
105
+ st.success("Translated")
106
 
107
  st.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())
108
  #else: