montyanderson commited on
Commit
acc5f49
1 Parent(s): 15fef66

`app.py`: use gallery component

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,7 +96,7 @@ def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width,
96
 
97
  job = prodia_client.wait(result)
98
 
99
- return job["imageUrl"]
100
 
101
  css = """
102
  #generate {
@@ -166,7 +166,7 @@ with gr.Blocks(css=css) as demo:
166
 
167
 
168
  with gr.Column(scale=2):
169
- image_output = gr.Image(value="https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png")
170
 
171
  text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
172
 
 
96
 
97
  job = prodia_client.wait(result)
98
 
99
+ return [ job["imageUrl"] ]
100
 
101
  css = """
102
  #generate {
 
166
 
167
 
168
  with gr.Column(scale=2):
169
+ image_output = gr.Gallery(value=["https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png"])
170
 
171
  text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
172