File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) Microsoft Corporation. All rights reserved.
2+ # Licensed under the MIT License. See License.txt in the project root for
3+ # license information.
4+
15# <imports>
26# -*- coding: utf-8 -*-
37
1014key_var_name = 'TEXT_ANALYTICS_SUBSCRIPTION_KEY'
1115if not key_var_name in os .environ :
1216 raise Exception ('Please set/export the environment variable: {}' .format (key_var_name ))
13- subscription_key = os .environ [key_var_name ]
17+ key = os .environ [key_var_name ]
1418
1519endpoint_var_name = 'TEXT_ANALYTICS_ENDPOINT'
1620if not endpoint_var_name in os .environ :
2024
2125# <authentication>
2226def authenticateClient ():
23- credentials = CognitiveServicesCredentials (subscription_key )
27+ credentials = CognitiveServicesCredentials (key )
2428 text_analytics_client = TextAnalyticsClient (
2529 endpoint = endpoint , credentials = credentials )
2630 return text_analytics_client
You can’t perform that action at this time.
0 commit comments