Revert "1 change, 1 fix"

This reverts commit 7239de57ac.
This commit is contained in:
Aptronymist
2024-03-02 13:46:15 -05:00
parent f6748116ce
commit 271fb51bd6
3 changed files with 4 additions and 3 deletions
+2
View File
@@ -74,6 +74,8 @@ def create_batch_inputs(tab):
with gr.Row(elem_id=f"{tab}_row_batch"):
batch_count = gr.Slider(minimum=1, step=1, label='Batch count', value=1, elem_id=f"{tab}_batch_count")
batch_size = gr.Slider(minimum=1, maximum=32, step=1, label='Batch size', value=1, elem_id=f"{tab}_batch_size")
batch_switch_btn = ToolButton(value=ui_symbols.switch, elem_id=f"{tab}_batch_switch_btn", label="Switch dims")
batch_switch_btn.click(lambda w, h: (h, w), inputs=[batch_count, batch_size], outputs=[batch_count, batch_size], show_progress=False)
return batch_count, batch_size