This commit is contained in:
parent
6c1c581b80
commit
bc88a6aa45
@ -84,7 +84,7 @@ def main():
|
||||
message = uwsgi.mule_get_msg()
|
||||
task = json.loads(message)
|
||||
results = run_classification(task)
|
||||
channel.basic_publish(exchange=os.environ['PIKA_EXCHANGE'], routing_key='classification-result', body=results)
|
||||
channel.basic_publish(exchange=os.environ['PIKA_EXCHANGE'], routing_key='classification-result', body=json.dumps(results).encode("utf-8"))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Reference in New Issue
Block a user