We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a218e commit 0a2139dCopy full SHA for 0a2139d
test/test_speech_to_text_v1.py
@@ -128,10 +128,11 @@ def test_custom_corpora():
128
129
speech_to_text.list_corpora(customization_id='customid')
130
131
- file_path = './resources/speech_to_text/corpus-short-1.txt'
132
- with open(file_path) as f:
+ file_path = '../resources/speech_to_text/corpus-short-1.txt'
+ full_path = os.path.join(os.path.dirname(__file__), file_path)
133
+ with open(full_path) as corpus_file:
134
speech_to_text.add_corpora(customization_id='customid',
- corpus_name="corpus",file=f)
135
+ corpus_name="corpus",file=corpus_file)
136
137
speech_to_text.get_corpus(customization_id='customid',
138
corpus_name='corpus')
0 commit comments