Spaces:
Build error
Build error
Update app.py
Browse files95 unmodified lines969798991001013 unmodified lines10510610710810911011195 unmodified linesst.subheader("File Upload")datas=st.file_uploader("Original File")#data=getText("C:\Users\Ambresh C\Desktop\Python Files\Translators\Trail Doc of 500 words.docx")#if datas :#if st.button(label='Data Process'):3 unmodified linesbtTranslator(datas).save(binary_output)st.success("Translated")st.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())#else:# st.text('Upload File and Start the process')95 unmodified lines969798991001011023 unmodified lines10610710810911011111295 unmodified linesst.subheader("File Upload")datas=st.file_uploader("Original File")name=st.text('Enter New File Name: ')#data=getText("C:\Users\Ambresh C\Desktop\Python Files\Translators\Trail Doc of 500 words.docx")#if datas :#if st.button(label='Data Process'):3 unmodified linesbtTranslator(datas).save(binary_output)st.success("Translated")st.download_button(label='Download Translated File',file_name=(f"{name}_Translated.docx"), data=binary_output.getvalue())#else:# st.text('Upload File and Start the process')
app.py+2-1