Spiny commited on
Commit
e3c5218
·
1 Parent(s): e81ef3d

add gallery

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ def GenerateImageFromText(prompt):
26
  })
27
  image = Image.open(io.BytesIO(image_bytes))
28
 
29
- return image
30
 
31
  def GenerateTextLLM(inputText):
32
 
@@ -55,7 +55,7 @@ def GenerateTextLLM(inputText):
55
 
56
 
57
  outputs_image = [
58
- gr.components.Image(type="pil", label="Output Image"),
59
  "text"
60
  ]
61
 
 
26
  })
27
  image = Image.open(io.BytesIO(image_bytes))
28
 
29
+ return [image]
30
 
31
  def GenerateTextLLM(inputText):
32
 
 
55
 
56
 
57
  outputs_image = [
58
+ gr.components.Gallery(type="pil", label="Output Image"),
59
  "text"
60
  ]
61