Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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,
|