Skip to content

Commit

Permalink
Place import inside the function (#2209)
Browse files Browse the repository at this point in the history
Makes code copy-pastable runnable
  • Loading branch information
nnegrey authored Jun 12, 2019
1 parent a5f0f30 commit 897ac7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speech/cloud-client/transcribe.py
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 897ac7a

Please sign in to comment.