-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add emotion text emotion api #6
base: master
Are you sure you want to change the base?
Conversation
viveknimkarde
commented
Jun 20, 2018
- Add Text Emotion API wrapper for python
test/test_text_recoginse_emotion.py
Outdated
@@ -0,0 +1,52 @@ | |||
# coding: utf-8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in file name
test/test_text_recoginse_emotion.py
Outdated
import uuid | ||
|
||
|
||
class TestTextEmootion(unittest.TestCase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in class name
test/test_text_recoginse_emotion.py
Outdated
|
||
def setUp(self): | ||
deepaffects.configuration.api_key['apikey'] = os.environ['DEEPAFFECTS_API_KEY'] | ||
self.webhook_url = os.environ["DEEPAFFECTS_API_WEBHOOK"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use consistent quotes
test/test_text_recoginse_emotion.py
Outdated
def tearDown(self): | ||
pass | ||
|
||
def test_async_diarize_audio(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you aren't testing diarize audio here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add more tests to test the cases where the request is malformed. Also check for all the expected keys in output
217cd50
to
8890efd
Compare
8890efd
to
f6076e3
Compare