Spaces:
Running
on
Zero
Running
on
Zero
fix UI
Browse files
app.py
CHANGED
@@ -153,13 +153,13 @@ with gr.Blocks(title="VAE Performance Tester", css=".monospace-text {font-family
|
|
153 |
recon_gallery = gr.Gallery(label="Reconstructed Images", columns=4, height=512)
|
154 |
scores_output = gr.Textbox(label="Sum of difference (lower is better reconstruction)", lines=5, elem_classes="monospace-text")
|
155 |
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
|
164 |
submit_btn.click(
|
165 |
fn=test_all_vaes,
|
|
|
153 |
recon_gallery = gr.Gallery(label="Reconstructed Images", columns=4, height=512)
|
154 |
scores_output = gr.Textbox(label="Sum of difference (lower is better reconstruction)", lines=5, elem_classes="monospace-text")
|
155 |
|
156 |
+
if examples:
|
157 |
+
with gr.Row():
|
158 |
+
example_gallery = gr.Examples(
|
159 |
+
examples=examples,
|
160 |
+
inputs=image_input,
|
161 |
+
label="Example Images"
|
162 |
+
)
|
163 |
|
164 |
submit_btn.click(
|
165 |
fn=test_all_vaes,
|