From 4e6e6d689ae51480c1dcf5c2892ca1711d0647b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Pedersen?= Date: Tue, 31 Oct 2023 12:35:44 +0100 Subject: [PATCH] Linted code --- demo/src/css_style.py | 2 +- demo/src/gui.py | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/demo/src/css_style.py b/demo/src/css_style.py index e21cbd1..f6a7d7a 100644 --- a/demo/src/css_style.py +++ b/demo/src/css_style.py @@ -24,4 +24,4 @@ #logs { height: auto } -""" \ No newline at end of file +""" diff --git a/demo/src/gui.py b/demo/src/gui.py index d653c8e..defb5c3 100644 --- a/demo/src/gui.py +++ b/demo/src/gui.py @@ -131,16 +131,20 @@ def run(self): with gr.Column(scale=0.2, min_width=150): sidebar_state = gr.State(True) - btn_toggle_sidebar = gr.Button("Toggle Sidebar", elem_id="toggle-button") + btn_toggle_sidebar = gr.Button( + "Toggle Sidebar", elem_id="toggle-button" + ) btn_toggle_sidebar.click( self.toggle_sidebar, [sidebar_state], [sidebar_left, sidebar_state], ) - btn_clear_logs = gr.Button("Clear logs", elem_id="logs-button") + btn_clear_logs = gr.Button( + "Clear logs", elem_id="logs-button" + ) btn_clear_logs.click(flush_logs, [], []) - + file_output = gr.File( file_count="single", elem_id="upload" ) @@ -162,8 +166,13 @@ def run(self): ) with gr.Column(scale=0.2, min_width=150): - run_btn = gr.Button("Run analysis", variant="primary", elem_id="run-button").style( - full_width=False, size="lg", + run_btn = gr.Button( + "Run analysis", + variant="primary", + elem_id="run-button", + ).style( + full_width=False, + size="lg", ) run_btn.click( fn=lambda x: self.process(x),