diff --git a/input/latents/_input_latents_will_be_put_here b/input/latents/_input_latents_will_be_put_here new file mode 100644 index 000000000..e69de29bb diff --git a/server.py b/server.py index f52117f10..b3f6cd761 100644 --- a/server.py +++ b/server.py @@ -359,7 +359,20 @@ class PromptServer(): self.prompt_queue.delete_history_item(id_to_delete) return web.Response(status=200) - + + @routes.post("/clipspace/copy") + async def clipspace_copy(request): + import execution + json_data = await request.json() + self.clipspace = execution.outputs[json_data['node_id']] + + @routes.post("/clipspace/paste") + async def clipspace_copy(request): + import execution + json_data = await request.json() + id = json_data['node_id'] + print(self.clipspace) + def add_routes(self): self.app.add_routes(self.routes) self.app.add_routes([