Skip to content

Commit 98bc4bc

Browse files
lucianommartinsparthea
authored andcommitted
docs(samples): fixing file saving for local documents translation (#419)
Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent bd5e51a commit 98bc4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translation/samples/snippets/translate_v3beta1_translate_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def translate_document(project_id: str, file_path: str):
4343

4444
# To output the translated document, uncomment the code below.
4545
# f = open('/tmp/output', 'wb')
46-
# f.write(response.document_translation.byte_stream_outputs)
46+
# f.write(response.document_translation.byte_stream_outputs[0])
4747
# f.close()
4848

4949
# If not provided in the TranslationRequest, the translated file will only be returned through a byte-stream

0 commit comments

Comments
 (0)