diff --git a/flask_app.py b/flask_app.py index 99fc475..98e6f5d 100644 --- a/flask_app.py +++ b/flask_app.py @@ -124,6 +124,7 @@ def add_entity_tag(): resp_code = client.create_entity(tag) if resp_code == 200: client.create_sample(tag, expressions) + EntityTags.create_entitytag(form.tag_value.data, form.expressions.data) else: form._errors = {} form._errors['Server error'] = 'Failed to push sample to wit.ai' diff --git a/miscellaneous b/miscellaneous index d192b6e..a3d9c3f 100644 --- a/miscellaneous +++ b/miscellaneous @@ -27,8 +27,8 @@ $ curl -XPOST 'https://api.wit.ai/samples?v=20170307' \ "text": "I want to fly to sfo", "entities": [ { - "entity": "favorite_city", - "value": "London" + "entity": "boom", + "value": "boom" } ] }]'