Mbonea commited on
Commit
b4d6bfc
·
1 Parent(s): f5322dd

minor correction

Browse files
Files changed (1) hide show
  1. App/Generate/database/Model.py +4 -1
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
- if status["output"]:
 
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