AYYasaswini commited on
Commit
a71c93c
·
verified ·
1 Parent(s): af3b6eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -928,7 +928,7 @@ def generate_image_from_prompt(text_in, style_in):
928
 
929
  #loss_generated_img = (loss_style(prompt, style_embed[0], style_seed))
930
 
931
- return [generated_image]
932
 
933
 
934
  # Define Interface
@@ -950,7 +950,7 @@ demo = gr.Interface(generate_image_from_prompt,
950
  ),
951
  ],
952
  outputs=[
953
- gr.Gallery(label="Generated Images", show_label=False, elem_id="gallery", columns=1, rows=1,
954
  object_fit="contain"),
955
  ],
956
  title=title,
 
928
 
929
  #loss_generated_img = (loss_style(prompt, style_embed[0], style_seed))
930
 
931
+ return [generated_image,generate_loss_details]
932
 
933
 
934
  # Define Interface
 
950
  ),
951
  ],
952
  outputs=[
953
+ gr.Gallery(label="Generated Images", show_label=False, elem_id="gallery", columns=2, rows=2,
954
  object_fit="contain"),
955
  ],
956
  title=title,