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 7e35b7b34f
commit 55e8b800d2
1 changed files with 5 additions and 3 deletions

View File

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