Commit 6b23cdc1 authored by Carl De Sousa Trias's avatar Carl De Sousa Trias
Browse files

Updates name of the AIM "TextandImageQuery" (Case3)

parent 8f564ddc
......@@ -22,14 +22,14 @@ from playsound import playsound
class QuestionAnswering():
class TextandImageQuery():
QuestionText = None
RawImage = None
##
AnswerText = None
def funcQuestionAnswering(self, raw_image_path,question):
def funcTextandImageQuery(self, raw_image_path,question):
'''
Apply an NN to answer the question
'''
......@@ -40,7 +40,7 @@ class QuestionAnswering():
return output['answer']
def run(self):
self.AnswerText = self.funcQuestionAnswering(self.RawImage, self.QuestionText)
self.AnswerText = self.funcTextandImageQuery(self.RawImage, self.QuestionText)
class SpeechRecognition():
QuestionAudio = None
......
......@@ -64,13 +64,13 @@
],
"SubAIMs": [
{
"Name": "QuestionAnswering",
"Name": "TextandImageQuery",
"Identifier": {
"ImplementerID": "/* String assigned by IIDRA */",
"Specification": {
"Standard": "MPAI-NNW",
"AIW": "NNW-QAUsage",
"AIM": "QuestionAnswering",
"AIM": "TextandImageQuery",
"Version": "1"
}
}
......@@ -118,7 +118,7 @@
"PortName":"QuestionText"
},
"Input":{
"AIMName":"QuestionAnswering",
"AIMName":"TextandImageQuery",
"PortName":"QuestionText"
}
},
......@@ -128,13 +128,13 @@
"PortName":"RawImage"
},
"Input":{
"AIMName":"QuestionAnswering",
"AIMName":"TextandImageQuery",
"PortName":"RawImage"
}
},
{
"Output":{
"AIMName":"QuestionAnswering",
"AIMName":"TextandImageQuery",
"PortName":"AnswerText"
},
"Input":{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment