minor changes

This commit is contained in:
Do Son Tung
2024-04-05 12:12:20 -04:00
parent bc8c68920b
commit fcb64ac987

View File

@@ -74,11 +74,11 @@ def open_folder():
return return
elif not os.path.isdir(path): elif not os.path.isdir(path):
msg = f""" msg = f"""
WARNING WARNING
An open_folder request was made with an path that is not a folder. An open_folder request was made with an path that is not a folder.
This could be an error or a malicious attempt to run code on your computer. This could be an error or a malicious attempt to run code on your computer.
Requested path was: {path} Requested path was: {path}
""" """
print(msg, file=sys.stderr) print(msg, file=sys.stderr)
gr.Warning(msg) gr.Warning(msg)
return return
@@ -112,7 +112,7 @@ def on_ui_tabs():
rotate_slider = gr.Slider( rotate_slider = gr.Slider(
minimum=-180, minimum=-180,
maximum=180, maximum=180,
step=5, step=1,
value=0, value=0,
label="Rotate" label="Rotate"
) )
@@ -175,7 +175,7 @@ def on_ui_tabs():
with gr.Row(): with gr.Row():
render_button = gr.Button(value="Render") render_button = gr.Button(value="Render")
with gr.Row(): with gr.Row():
save_button = gr.Button(value="Save to img2img", save_button = gr.Button(value="Save to output foldedr",
variant="primary", variant="primary",
scale=4) scale=4)
folder_symbol = '\U0001f4c2' # 📂 folder_symbol = '\U0001f4c2' # 📂