Skip to content

Commit

Permalink
docs(samples): fixing file saving for local documents translation (#419)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
lucianommartins and parthea authored Sep 1, 2022
1 parent f7ebee0 commit 665c674
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def translate_document(project_id: str, file_path: str):

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

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

0 comments on commit 665c674

Please sign in to comment.