Commit 1faea315 authored by novelailab's avatar novelailab

fix event string

parent 5974bf40
......@@ -95,11 +95,7 @@ def generate(request: GenerationRequest):
ptr = 0
for x in images:
ptr += 1
data += ("""event: newImage
id: {}
data:{}
""").format(ptr, x)
data += ("event: newImage\nid: {}\ndata:{}\n\n").format(ptr, x)
return Response(content=data, media_type="text/event-stream")
#return GenerationOutput(output=images)
......
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