minor correction
Browse files
App/Generate/database/Model.py
CHANGED
@@ -260,8 +260,11 @@ class Scene(orm.Model):
|
|
260 |
while True:
|
261 |
result = await image_generator.generate_image(payload)
|
262 |
status = await image_generator.fetch_image_status(result["id"])
|
263 |
-
|
|
|
264 |
self.images.extend(status["output"])
|
|
|
|
|
265 |
break
|
266 |
|
267 |
|
|
|
260 |
while True:
|
261 |
result = await image_generator.generate_image(payload)
|
262 |
status = await image_generator.fetch_image_status(result["id"])
|
263 |
+
|
264 |
+
if type(status["output"]) == list:
|
265 |
self.images.extend(status["output"])
|
266 |
+
else:
|
267 |
+
self.images.append(status["output"])
|
268 |
break
|
269 |
|
270 |
|