feat: rename metadata tab and import button label
This commit is contained in:
parent
f3010313fc
commit
ee21c2b6bc
4
webui.py
4
webui.py
|
|
@ -210,11 +210,11 @@ with shared.gradio_root:
|
|||
value=flags.desc_type_photo)
|
||||
desc_btn = gr.Button(value='Describe this Image into Prompt')
|
||||
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/1363" target="_blank">\U0001F4D4 Document</a>')
|
||||
with gr.TabItem(label='Load Metadata') as load_tab:
|
||||
with gr.TabItem(label='Metadata') as load_tab:
|
||||
with gr.Column():
|
||||
metadata_input_image = grh.Image(label='Drag any image generated by Fooocus here', source='upload', type='filepath')
|
||||
metadata_json = gr.JSON(label='Metadata')
|
||||
metadata_import_button = gr.Button(value='Overwrite Input Values')
|
||||
metadata_import_button = gr.Button(value='Apply Metadata')
|
||||
|
||||
def trigger_metadata_preview(filepath):
|
||||
parameters, items, metadata_scheme = modules.metadata.read_info_from_image(filepath)
|
||||
|
|
|
|||
Loading…
Reference in New Issue