feat(api): add ready endpoint to check output status
This commit is contained in:
parent
7e35b7b34f
commit
55e8b800d2
|
@ -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),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue