comfy: write preview frames where rust can find them

This commit is contained in:
Kasisnu
2024-08-05 17:40:09 +05:30
parent 5308399454
commit 044057817a
5 changed files with 327 additions and 98 deletions
@@ -360,6 +360,10 @@ def get_history(prompt_id):
with urllib.request.urlopen("http://{}/history/{}".format(SERVER_IP, prompt_id)) as response:
return json.loads(response.read())
def get_queue(server_ip):
with urllib.request.urlopen("http://{}/queue".format(server_ip)) as response:
return json.loads(response.read())
async def get_images(ws, prompt_id, filter_node_id=None):
output_images = {}
while True: