Added image grabbing and data capacity to request and included runtime recognition
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
def buildImage(response, action, outputs):
|
||||
if hasattr(action, "image"):
|
||||
if response is not None:
|
||||
#try:
|
||||
imagebytes = response.content
|
||||
outputs[action.image] = imagebytes
|
||||
#except AttributeError:
|
||||
|
||||
else:
|
||||
print("No response received"),
|
||||
|
||||
return outputs
|
||||
Reference in New Issue
Block a user