Skip to content

Commit 0d0c453

Browse files
nnegreybusunkim96
authored andcommitted
Place import inside the function [(#2209)](GoogleCloudPlatform/python-docs-samples#2209)
Makes code copy-pastable runnable
1 parent f6cd730 commit 0d0c453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-speech/samples/snippets/transcribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"""
2424

2525
import argparse
26-
import io
2726

2827

2928
# [START speech_transcribe_sync]
@@ -32,6 +31,7 @@ def transcribe_file(speech_file):
3231
from google.cloud import speech
3332
from google.cloud.speech import enums
3433
from google.cloud.speech import types
34+
import io
3535
client = speech.SpeechClient()
3636

3737
# [START speech_python_migration_sync_request]

0 commit comments

Comments
 (0)