8000 Place import inside the function [(#2209)](https://github.com/GoogleC… · googleapis/python-speech@983c494 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 983c494

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
0