Skip to content

Commit

Permalink
Place import inside the function [(#2209)](GoogleCloudPlatform/python…
Browse files Browse the repository at this point in the history
…-docs-samples#2209)

Makes code copy-pastable runnable
  • Loading branch information
nnegrey authored and busunkim96 committed Sep 3, 2020
1 parent 25e526a commit e485e67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"""

import argparse
import io


# [START speech_transcribe_sync]
Expand All @@ -32,6 +31,7 @@ def transcribe_file(speech_file):
from google.cloud import speech
from google.cloud.speech import enums
from google.cloud.speech import types
import io
client = speech.SpeechClient()

# [START speech_python_migration_sync_request]
Expand Down

0 comments on commit e485e67

Please sign in to comment.