Skip to content

Commit fb4e3d6

Browse files
committed
Added output schema for API to docstring of POST method for QuestionAnsweringApi.
1 parent 4ed3ce9 commit fb4e3d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

question_answering_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def post(self):
2929
POST method. Body of POST request must be in JSON format with schema:
3030
{ question: Question being asked,
3131
context: Document containing answer }
32-
Returns a JSON object.
32+
Returns a JSON object with schema:
33+
{ answer: Answer to question extracted from context}
3334
'''
3435
inputs = request.get_json(force=True)
3536
question, context = inputs.get('question'), inputs.get('context')

0 commit comments

Comments
 (0)