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"))