andreped commited on
Commit
2c47dd4
1 Parent(s): 8ffd127

Minor linting; 3.10 in CI Linting workflow

Browse files
Files changed (2) hide show
  1. .github/workflows/linting.yml +2 -2
  2. demo/src/gui.py +2 -10
.github/workflows/linting.yml CHANGED
@@ -14,10 +14,10 @@ jobs:
14
  runs-on: ubuntu-20.04
15
  steps:
16
  - uses: actions/checkout@v1
17
- - name: Set up Python 3.7
18
  uses: actions/setup-python@v2
19
  with:
20
- python-version: 3.7
21
 
22
  - name: Install lint dependencies
23
  run: pip install wheel setuptools black==22.3.0 isort==5.10.1 flake8==4.0.1
 
14
  runs-on: ubuntu-20.04
15
  steps:
16
  - uses: actions/checkout@v1
17
+ - name: Set up Python 3.10
18
  uses: actions/setup-python@v2
19
  with:
20
+ python-version: "3.10"
21
 
22
  - name: Install lint dependencies
23
  run: pip install wheel setuptools black==22.3.0 isort==5.10.1 flake8==4.0.1
demo/src/gui.py CHANGED
@@ -92,11 +92,7 @@ class WebUI:
92
 
93
  def get_img_pred_pair(self, k):
94
  k = int(k)
95
- out = gr.AnnotatedImage(
96
- self.combine_ct_and_seg(self.images[k], self.pred_images[k]),
97
- visible=True,
98
- elem_id="model-2d",
99
- ).style(
100
  color_map={self.class_name: "#ffae00"},
101
  height=512,
102
  width=512,
@@ -161,11 +157,7 @@ class WebUI:
161
  )
162
 
163
  with gr.Column(scale=0.2, min_width=150):
164
- run_btn = gr.Button(
165
- "Run analysis",
166
- variant="primary",
167
- elem_id="run-button",
168
- ).style(
169
  full_width=False,
170
  size="lg",
171
  )
 
92
 
93
  def get_img_pred_pair(self, k):
94
  k = int(k)
95
+ out = gr.AnnotatedImage(self.combine_ct_and_seg(self.images[k], self.pred_images[k]), visible=True, elem_id="model-2d",).style(
 
 
 
 
96
  color_map={self.class_name: "#ffae00"},
97
  height=512,
98
  width=512,
 
157
  )
158
 
159
  with gr.Column(scale=0.2, min_width=150):
160
+ run_btn = gr.Button("Run analysis", variant="primary", elem_id="run-button",).style(
 
 
 
 
161
  full_width=False,
162
  size="lg",
163
  )