We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translate_document()
seek(0, 0)
After the output_document is finished, the pointer should be set to 0, 0 to make further processing possible.
output_document
0, 0
result = BytesIO() translator.translate_document(input_document=source_file, output_document=result, target_lang=target_lang, filename=source_file.filename) result.seek(0, 0) # required, else flask wont send the file return flask.send_file(result, download_name=source_file.filename, as_attachment=True)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After the
output_document
is finished, the pointer should be set to0, 0
to make further processing possible.The text was updated successfully, but these errors were encountered: