From 4a869a951ab74bf183d86e80a5dbc9b89ac402b6 Mon Sep 17 00:00:00 2001 From: Aitor Emper <74368135+aitronssesin@users.noreply.github.com> Date: Sun, 31 Mar 2024 17:30:21 +0200 Subject: [PATCH] Better --- tabs/train/train.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tabs/train/train.py b/tabs/train/train.py index be35e718a..9cf1729a2 100644 --- a/tabs/train/train.py +++ b/tabs/train/train.py @@ -576,11 +576,12 @@ def train_tab(): ) with gr.Accordion(i18n("Export Model"), open=False): - gr.Markdown( - i18n( - "The button 'Upload' is only for google colab: Uploads the exported files to the ApplioExported folder in your Google Drive." + if not os.name == "nt": + gr.Markdown( + i18n( + "The button 'Upload' is only for google colab: Uploads the exported files to the ApplioExported folder in your Google Drive." + ) ) - ) with gr.Row(): with gr.Column(): pth_file_export = gr.File( @@ -617,7 +618,6 @@ def train_tab(): refresh_export = gr.Button(i18n("Refresh")) if not os.name == "nt": upload_exported = gr.Button(i18n("Upload"), variant="primary") - upload_exported.click( fn=upload_to_google_drive, inputs=[pth_dropdown_export, index_dropdown_export],