Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
|
|
@@ -28,12 +29,12 @@ with gr.Blocks() as interface:
|
|
| 28 |
with gr.Row():
|
| 29 |
outputs = gr.Gallery(
|
| 30 |
label="Generated Image", show_label=True,
|
| 31 |
-
columns=[
|
| 32 |
)
|
| 33 |
|
| 34 |
with gr.Row():
|
| 35 |
button = gr.Button("Generate")
|
| 36 |
-
button.click(
|
| 37 |
|
| 38 |
with gr.Row():
|
| 39 |
gr.Examples(examples=get_examples(), inputs=inputs, outputs=outputs, fn=generate_art, cache_examples=True)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from sd_utils import *
|
| 3 |
|
| 4 |
|
| 5 |
|
|
|
|
| 29 |
with gr.Row():
|
| 30 |
outputs = gr.Gallery(
|
| 31 |
label="Generated Image", show_label=True,
|
| 32 |
+
columns=[1], rows=[1], object_fit="contain"
|
| 33 |
)
|
| 34 |
|
| 35 |
with gr.Row():
|
| 36 |
button = gr.Button("Generate")
|
| 37 |
+
button.click(generate_with_embs_custom_loss, inputs=inputs, outputs=outputs)
|
| 38 |
|
| 39 |
with gr.Row():
|
| 40 |
gr.Examples(examples=get_examples(), inputs=inputs, outputs=outputs, fn=generate_art, cache_examples=True)
|