1
0
Fork 0

feat(api): add ready endpoint to check output status

This commit is contained in:
Sean Sube 2023-01-12 19:56:41 -06:00
parent b89eb42712
commit 41935667c4
1 changed files with 5 additions and 3 deletions

View File

@ -447,10 +447,12 @@ def inpaint():
})
@app.route('/ready/<path:filename>')
def ready(filename):
@app.route('/ready')
def ready():
output_file = request.args.get('output', None)
return json_with_cors({
'ready': executor.futures.done(filename),
'ready': executor.futures.done(output_file),
})