From 6bc11444cb42ed3b84e4fa9bc0dc8dd265b68a36 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Dec 2024 21:18:29 +0000 Subject: [PATCH] chore(format): run black on main --- tabs/inference/inference.py | 14 +++++++------- tabs/train/train.py | 23 +++++++++++------------ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/tabs/inference/inference.py b/tabs/inference/inference.py index 42fec787..284f1518 100644 --- a/tabs/inference/inference.py +++ b/tabs/inference/inference.py @@ -1640,13 +1640,13 @@ def enforce_terms_batch(terms_accepted, *args): ) terms_checkbox_batch = gr.Checkbox( - label=i18n("I agree to the terms of use"), - info=i18n( - "Please ensure compliance with the terms and conditions detailed in [this document](https://github.com/IAHispano/Applio/blob/main/TERMS_OF_USE.md) before proceeding with your inference." - ), - value=False, - interactive=True, - ) + label=i18n("I agree to the terms of use"), + info=i18n( + "Please ensure compliance with the terms and conditions detailed in [this document](https://github.com/IAHispano/Applio/blob/main/TERMS_OF_USE.md) before proceeding with your inference." + ), + value=False, + interactive=True, + ) convert_button_batch = gr.Button(i18n("Convert")) stop_button = gr.Button(i18n("Stop convert"), visible=False) stop_button.click(fn=stop_infer, inputs=[], outputs=[]) diff --git a/tabs/train/train.py b/tabs/train/train.py index 1f5b0d26..de88b670 100644 --- a/tabs/train/train.py +++ b/tabs/train/train.py @@ -733,12 +733,11 @@ def train_tab(): ) def enforce_terms(terms_accepted, *args): - if not terms_accepted: - message = "You must agree to the Terms of Use to proceed." - gr.Info(message) - return message - return run_train_script(*args) - + if not terms_accepted: + message = "You must agree to the Terms of Use to proceed." + gr.Info(message) + return message + return run_train_script(*args) terms_checkbox = gr.Checkbox( label=i18n("I agree to the terms of use"), @@ -749,12 +748,12 @@ def enforce_terms(terms_accepted, *args): interactive=True, ) train_output_info = gr.Textbox( - label=i18n("Output Information"), - info=i18n("The output information will be displayed here."), - value="", - max_lines=8, - interactive=False, - ) + label=i18n("Output Information"), + info=i18n("The output information will be displayed here."), + value="", + max_lines=8, + interactive=False, + ) with gr.Row(): train_button = gr.Button(i18n("Start Training"))