Skip to content

Commit cfdc398

Browse files
Merge branch 'next' into codegen/visual-recognition
2 parents c5aef04 + 7d6d8fa commit cfdc398

39 files changed

Lines changed: 619 additions & 554 deletions

.env.enc

0 Bytes
Binary file not shown.

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# lint Python modules using external checkers.
22
[MASTER]
33
ignore=SVN
4-
disable=R0903,R0912,R0913,R0914,R0915,W0141,C0111,C0103,W0603,W0703,R0911,C0301,C0302,R0902,R0904,W0142,W0212,E1101,E1103,R0201,W0201,W0122,W0232,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801,F0401,E0611,R0801,I0011,F0401,E0611,E1004,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,C0301,C0411,R0204,W0622
4+
disable=R0903,R0912,R0913,R0914,R0915,W0141,C0111,C0103,W0603,W0703,R0911,C0301,C0302,R0902,R0904,W0142,W0212,E1101,E1103,R0201,W0201,W0122,W0232,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801,F0401,E0611,R0801,I0011,F0401,E0611,E1004,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,C0301,C0411,R0204,W0622,inconsistent-return-statements

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ python:
77
- '3.6'
88
cache: pip
99
before_install:
10-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_cebf25e6c525_key
11-
-iv $encrypted_cebf25e6c525_iv -in .env.enc -out .env -d || true'
10+
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_6e98b3e8e789_key -iv $encrypted_6e98b3e8e789_iv -in .env.enc -out .env -d || true'
1211
install: pip install tox-travis
13-
script: tox
12+
script:
13+
- pip install -U python-dotenv
14+
- tox
1415
before_deploy:
1516
- pip install -r requirements.txt
1617
- pip install -r requirements-dev.txt

examples/conversation_tone_analyzer_integration/tone_conversation_integration.v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def invokeToneConversation(payload, maintainToneHistoryInContext):
5858
with application-specific code to process the err or data object
5959
returned by the Conversation Service.
6060
"""
61-
tone = tone_analyzer.tone(tone_input=payload['input']['text'])
61+
tone = tone_analyzer.tone(tone_input=payload['input']['text'], content_type='application/json')
6262
conversation_payload = tone_detection.\
6363
updateUserTone(payload, tone, maintainToneHistoryInContext)
6464
response = conversation.message(workspace_id=workspace_id,

0 commit comments

Comments
 (0)