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 ...@@ -22,14 +22,14 @@ from playsound import playsound
class QuestionAnswering(): class TextandImageQuery():
QuestionText = None QuestionText = None
RawImage = None RawImage = None
## ##
AnswerText = None AnswerText = None
def funcQuestionAnswering(self, raw_image_path,question): def funcTextandImageQuery(self, raw_image_path,question):
''' '''
Apply an NN to answer the question Apply an NN to answer the question
''' '''
...@@ -40,7 +40,7 @@ class QuestionAnswering(): ...@@ -40,7 +40,7 @@ class QuestionAnswering():
return output['answer'] return output['answer']
def run(self): def run(self):
self.AnswerText = self.funcQuestionAnswering(self.RawImage, self.QuestionText) self.AnswerText = self.funcTextandImageQuery(self.RawImage, self.QuestionText)
class SpeechRecognition(): class SpeechRecognition():
QuestionAudio = None QuestionAudio = None
......
...@@ -64,13 +64,13 @@ ...@@ -64,13 +64,13 @@
], ],
"SubAIMs": [ "SubAIMs": [
{ {
"Name": "QuestionAnswering", "Name": "TextandImageQuery",
"Identifier": { "Identifier": {
"ImplementerID": "/* String assigned by IIDRA */", "ImplementerID": "/* String assigned by IIDRA */",
"Specification": { "Specification": {
"Standard": "MPAI-NNW", "Standard": "MPAI-NNW",
"AIW": "NNW-QAUsage", "AIW": "NNW-QAUsage",
"AIM": "QuestionAnswering", "AIM": "TextandImageQuery",
"Version": "1" "Version": "1"
} }
} }
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
"PortName":"QuestionText" "PortName":"QuestionText"
}, },
"Input":{ "Input":{
"AIMName":"QuestionAnswering", "AIMName":"TextandImageQuery",
"PortName":"QuestionText" "PortName":"QuestionText"
} }
}, },
...@@ -128,13 +128,13 @@ ...@@ -128,13 +128,13 @@
"PortName":"RawImage" "PortName":"RawImage"
}, },
"Input":{ "Input":{
"AIMName":"QuestionAnswering", "AIMName":"TextandImageQuery",
"PortName":"RawImage" "PortName":"RawImage"
} }
}, },
{ {
"Output":{ "Output":{
"AIMName":"QuestionAnswering", "AIMName":"TextandImageQuery",
"PortName":"AnswerText" "PortName":"AnswerText"
}, },
"Input":{ "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