|
@@ -32,7 +32,7 @@ class TencentNLP:
|
|
|
|
|
|
def __init__(self):
|
|
|
cred = credential.Credential(settings.TENCENT_SECRET_ID_V1, settings.TENCENT_SECRET_KEY_V1)
|
|
|
- http_profile = HttpProfile()
|
|
|
+ http_profile = HttpProfile(proxy=settings.HTTPS_PROXY)
|
|
|
http_profile.reqMethod = 'GET'
|
|
|
http_profile.endpoint = settings.TENCENT_NLP_ENDPOINT
|
|
|
|