Commit 0a8581be authored by Qirui Sun's avatar Qirui Sun
Browse files

add refresh button

1 merge request!1now merge Ip branch to master
Showing with 7 additions and 3 deletions
+7 -3
......@@ -454,9 +454,13 @@ class ControlNetUiGroup(object):
except FileNotFoundError as e:
info = f"Error: This path is not valid ==> {e}"
return info
self.multi_references_dir = gr.Textbox()
self.image_ids = gr.Textbox()
self.multi_references_dir.change(input_change, inputs=[self.multi_references_dir], outputs=self.image_ids)
self.multi_references_dir = gr.Textbox(label='Cache File Path')
self.image_ids = gr.Textbox(label='Total number of pictures')
self.refresh_images = ToolButton(
value=ControlNetUiGroup.refresh_symbol,
tooltip=ControlNetUiGroup.tooltips[ControlNetUiGroup.refresh_symbol],
)
self.refresh_images.click(input_change, inputs=[self.multi_references_dir], outputs=self.image_ids)
self.IP_mode = gr.Dropdown(
['last_5layers','front_5layers','10layers','upblocks_only','Full'],
label='IP Mode',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment