Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 897ac7a

Browse files
authored
Place import inside the function (GoogleCloudPlatform#2209)
Makes code copy-pastable runnable
1 parent a5f0f30 commit 897ac7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

speech/cloud-client/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)