Commit ·
ade8844
1
Parent(s): bdda5f1
Update result gallery to use filepath type for correct handling
Browse files- ui/events/run_handlers.py +1 -3
- ui/shared/txt2img_ui.py +1 -1
ui/events/run_handlers.py
CHANGED
|
@@ -104,9 +104,7 @@ def create_run_event(prefix: str, task_type: str, ui_components: dict):
|
|
| 104 |
# No need to add it to the run button outputs.
|
| 105 |
|
| 106 |
run_btn.click(
|
| 107 |
-
fn=lambda *args, progress=gr.Progress(track_tqdm=True): (
|
| 108 |
-
lambda res: [res, res] if ui_components.get('gallery') else res
|
| 109 |
-
)(generate_image_wrapper(create_ui_inputs_dict(*args), progress)),
|
| 110 |
inputs=input_list_flat,
|
| 111 |
outputs=outputs
|
| 112 |
)
|
|
|
|
| 104 |
# No need to add it to the run button outputs.
|
| 105 |
|
| 106 |
run_btn.click(
|
| 107 |
+
fn=lambda *args, progress=gr.Progress(track_tqdm=True): generate_image_wrapper(create_ui_inputs_dict(*args), progress),
|
|
|
|
|
|
|
| 108 |
inputs=input_list_flat,
|
| 109 |
outputs=outputs
|
| 110 |
)
|
ui/shared/txt2img_ui.py
CHANGED
|
@@ -86,7 +86,7 @@ def create_ui():
|
|
| 86 |
label="Result",
|
| 87 |
show_label=False,
|
| 88 |
columns=2,
|
| 89 |
-
|
| 90 |
height=627
|
| 91 |
)
|
| 92 |
|
|
|
|
| 86 |
label="Result",
|
| 87 |
show_label=False,
|
| 88 |
columns=2,
|
| 89 |
+
type="filepath",
|
| 90 |
height=627
|
| 91 |
)
|
| 92 |
|