parent
613b7d74ea
commit
4493fd7133
@ -2,7 +2,7 @@
|
||||
|
||||
<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/ReActor_logo_NEW_EN.png?raw=true" alt="logo" width="180px"/>
|
||||
|
||||

|
||||

|
||||
|
||||
<a href="https://boosty.to/artgourieff" target="_blank">
|
||||
<img src="https://lovemet.ru/www/boosty.jpg" width="108" alt="Support Me on Boosty"/>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/ReActor_logo_NEW_RU.png?raw=true" alt="logo" width="180px"/>
|
||||
|
||||

|
||||

|
||||
|
||||
<a href="https://boosty.to/artgourieff" target="_blank">
|
||||
<img src="https://lovemet.ru/www/boosty.jpg" width="108" alt="Поддержать проект на Boosty"/>
|
||||
|
||||
@ -11,9 +11,14 @@ from modules import shared
|
||||
# SAVE_ORIGINAL: bool = False
|
||||
|
||||
def update_fm_list(selected: str):
|
||||
try: # GR3.x
|
||||
return gr.Dropdown.update(
|
||||
value=selected, choices=get_model_names(get_facemodels)
|
||||
)
|
||||
except: # GR4.x
|
||||
return gr.Dropdown(
|
||||
value=selected, choices=get_model_names(get_facemodels)
|
||||
)
|
||||
|
||||
# TAB MAIN
|
||||
def show(is_img2img: bool, show_br: bool = True, **msgs):
|
||||
@ -24,6 +29,7 @@ def show(is_img2img: bool, show_br: bool = True, **msgs):
|
||||
if evt.index == 2:
|
||||
# if SAVE_ORIGINAL != selected:
|
||||
# SAVE_ORIGINAL = selected
|
||||
try: # GR3.x
|
||||
return {
|
||||
control_col_1: gr.Column.update(visible=False),
|
||||
control_col_2: gr.Column.update(visible=False),
|
||||
@ -31,7 +37,16 @@ def show(is_img2img: bool, show_br: bool = True, **msgs):
|
||||
# save_original: gr.Checkbox.update(value=False,visible=False),
|
||||
imgs_hash_clear: gr.Button.update(visible=True)
|
||||
}
|
||||
except: # GR4.x
|
||||
return {
|
||||
control_col_1: gr.Column(visible=False),
|
||||
control_col_2: gr.Column(visible=False),
|
||||
control_col_3: gr.Column(visible=True),
|
||||
# save_original: gr.Checkbox.update(value=False,visible=False),
|
||||
imgs_hash_clear: gr.Button(visible=True)
|
||||
}
|
||||
if evt.index == 0:
|
||||
try: # GR3.x
|
||||
return {
|
||||
control_col_1: gr.Column.update(visible=True),
|
||||
control_col_2: gr.Column.update(visible=False),
|
||||
@ -39,7 +54,16 @@ def show(is_img2img: bool, show_br: bool = True, **msgs):
|
||||
# save_original: gr.Checkbox.update(value=SAVE_ORIGINAL,visible=show_br),
|
||||
imgs_hash_clear: gr.Button.update(visible=False)
|
||||
}
|
||||
except: # GR4.x
|
||||
return {
|
||||
control_col_1: gr.Column(visible=True),
|
||||
control_col_2: gr.Column(visible=False),
|
||||
control_col_3: gr.Column(visible=False),
|
||||
# save_original: gr.Checkbox.update(value=SAVE_ORIGINAL,visible=show_br),
|
||||
imgs_hash_clear: gr.Button(visible=False)
|
||||
}
|
||||
if evt.index == 1:
|
||||
try: # GR3.x
|
||||
return {
|
||||
control_col_1: gr.Column.update(visible=False),
|
||||
control_col_2: gr.Column.update(visible=True),
|
||||
@ -47,6 +71,14 @@ def show(is_img2img: bool, show_br: bool = True, **msgs):
|
||||
# save_original: gr.Checkbox.update(value=SAVE_ORIGINAL,visible=show_br),
|
||||
imgs_hash_clear: gr.Button.update(visible=False)
|
||||
}
|
||||
except: # GR4.x
|
||||
return {
|
||||
control_col_1: gr.Column(visible=False),
|
||||
control_col_2: gr.Column(visible=True),
|
||||
control_col_3: gr.Column(visible=False),
|
||||
# save_original: gr.Checkbox.update(value=SAVE_ORIGINAL,visible=show_br),
|
||||
imgs_hash_clear: gr.Button(visible=False)
|
||||
}
|
||||
|
||||
progressbar_area = gr.Markdown("")
|
||||
with gr.Tab("Main"):
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
app_title = "ReActor"
|
||||
version_flag = "v0.7.1-a1"
|
||||
version_flag = "v0.7.1-a2"
|
||||
|
||||
from scripts.reactor_logger import logger, get_Run, set_Run
|
||||
from scripts.reactor_globals import DEVICE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user