mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 22:27:29 +00:00
Image: Several fixes
This commit is contained in:
parent
8eac99599a
commit
afa29b9554
4 changed files with 36 additions and 36 deletions
|
|
@ -43,6 +43,9 @@ def generations(request):
|
|||
for images, _ in generate(state, save_images=False):
|
||||
pass
|
||||
|
||||
if not images:
|
||||
raise ServiceUnavailableError("Image generation failed or produced no images.")
|
||||
|
||||
# Build response
|
||||
resp = {'created': int(time.time()), 'data': []}
|
||||
for img in images:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue