Commit 19a85813 authored by novelailab's avatar novelailab

gotta sleep

parent f528ff54
...@@ -74,7 +74,7 @@ def generate(request: GenerationRequest): ...@@ -74,7 +74,7 @@ def generate(request: GenerationRequest):
return ErrorOutput(error=output[1]) return ErrorOutput(error=output[1])
images = model.sample(request) images = model.sample(request)
for x in range(images): for x in range(len(images)):
image = simplejpeg.encode_jpeg(images[x], quality=95) image = simplejpeg.encode_jpeg(images[x], quality=95)
image = image.tobytes() image = image.tobytes()
#get base64 of image #get base64 of image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment