Patch to Fooocus-API #19
Closed
Stratecadia
started this conversation in
General
Replies: 1 comment
-
I have posted this to the wrong fork... it was supposed to go to Fooocus-API not FooocusAPI |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current code has no provision to delete images from the API server after being downloaded. I attach a patch file that can be applied in the Fooocus-API directory, which adds a new route, /v1/delete_job
This route removes the image file from the storage directory (location has been changed) and cleans up the queue and history afterwards.
Invoked as follows: curl -X POST "http://127.0.0.1:8888/v1/delete_job" -H "Content-Type: application/json" -d '{"job_id": ""}'
delete_image_patch.zip
Beta Was this translation helpful? Give feedback.
All reactions