From ac9f86a828f54fc00ea9cee7f46324bb3b0f3774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Pedersen?= Date: Tue, 5 Dec 2023 16:50:41 +0100 Subject: [PATCH] Linted code --- demo/src/gui.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/demo/src/gui.py b/demo/src/gui.py index f1ef8e1..09391e8 100644 --- a/demo/src/gui.py +++ b/demo/src/gui.py @@ -1,7 +1,6 @@ import os import gradio as gr - from gradio_shinymodel3d import ShinyModel3D from .convert import nifti_to_obj @@ -52,7 +51,7 @@ def __init__( step=1, label="Which 2D slice to show", ) - #self.volume_renderer = gr.Model3D( + # self.volume_renderer = gr.Model3D( self.volume_renderer = ShinyModel3D() def set_class_name(self, value): @@ -88,7 +87,11 @@ def process(self, mesh_file_name): def get_img_pred_pair(self, k): k = int(k) - out = gr.AnnotatedImage(self.combine_ct_and_seg(self.images[k], self.pred_images[k]), visible=True, elem_id="model-2d",) + out = gr.AnnotatedImage( + self.combine_ct_and_seg(self.images[k], self.pred_images[k]), + visible=True, + elem_id="model-2d", + ) return out def toggle_sidebar(self, state): @@ -108,9 +111,9 @@ def run(self): autoscroll=True, elem_id="logs", show_copy_button=True, - #scroll_to_output=False, + # scroll_to_output=False, container=True, - #line_breaks=True, + # line_breaks=True, ) demo.load(read_logs, None, logs, every=1)