Skip to content

Commit 08f20bc

Browse files
author
Elizabeth Crowdus
committed
adding more resources
1 parent 7b4198e commit 08f20bc

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

translate/cloud-client/hybrid_glossaries/hybrid_tutorial.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def delete_glossary(project_id, glossary_name):
173173
resource = client.glossary_path(
174174
project_id,
175175
location,
176-
glossary_id)
176+
glossary_name)
177177

178178
operation = client.delete_glossary(resource)
179179
result = operation.result(timeout=90)
@@ -226,10 +226,11 @@ def main():
226226

227227
# delete_glossary(project_id, 'test-glossary')
228228
# create_glossary(['fr', 'en'], project_id, 'test')
229-
229+
"""
230230
text_to_translate = pic_to_text(infile)
231231
text_to_speak = translate_text(text_to_translate)
232232
text_to_speech(text_to_speak, outfile)
233+
"""
233234
# [END hybrid_integration]
234235

235236

translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
def test_vision_standard_format():
3030

3131
# Generate text
32-
text = pic_to_text('resources/standard_format.JPG')
32+
text = pic_to_text('resources/standard_format.jpeg')
3333

3434
# Read expected text
3535
with open('resources/standard_format.txt') as f:

translate/cloud-client/hybrid_glossaries/resources/non_standard_format.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ $6
2727
BigQuery BLT
2828
bacon, lettuce, and tomato
2929
sandwich
30-
$10
30+
$10
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
This is
2-
a test!
2+
a test!

0 commit comments

Comments
 (0)