Skip to content

Commit

Permalink
Linted code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed Oct 31, 2023
1 parent 7c7ec80 commit 4e6e6d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/src/css_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
#logs {
height: auto
}
"""
"""
19 changes: 14 additions & 5 deletions demo/src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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),
Expand Down

0 comments on commit 4e6e6d6

Please sign in to comment.