Report errors if Stable Diffusion failed to generate an image

This commit is contained in:
cmdr2
2022-08-24 13:33:58 +05:30
parent c1c876e12d
commit 83e3288177
2 changed files with 21 additions and 11 deletions

View File

@ -49,7 +49,6 @@ async def image(req : ImageRequest):
del data['input']['seed']
res = requests.post(PREDICT_URL, json=data)
print(res)
return res.json()
@app.get('/ding.mp3')