Skip to content

Commit

Permalink
chore(format): run black on main
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 11, 2024
1 parent 0dabada commit 6bc1144
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
14 changes: 7 additions & 7 deletions tabs/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[])
Expand Down
23 changes: 11 additions & 12 deletions tabs/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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"))
Expand Down

0 comments on commit 6bc1144

Please sign in to comment.