Commit 74d001bc authored by ramyma's avatar ramyma

Hotfix: call processing close to cleanup API generation calls

parent fab73f2e
......@@ -335,6 +335,7 @@ class Api:
p.script_args = tuple(script_args) # Need to pass args as tuple here
processed = process_images(p)
shared.state.end()
p.close()
b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else []
......@@ -392,6 +393,7 @@ class Api:
p.script_args = tuple(script_args) # Need to pass args as tuple here
processed = process_images(p)
shared.state.end()
p.close()
b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else []
......
Markdown is supported
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