Skip to content

Commit a42ba1f

Browse files
committed
chore: black pre-commit 적용 #134
1 parent 4e84565 commit a42ba1f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

interface/graph_builder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ def render_sequence(sequence: List[str]) -> str:
162162
_device_options = ["cpu", "cuda"]
163163
_device_default = _prev_cfg.get("device", "cpu")
164164
_device_index = (
165-
_device_options.index(_device_default)
166-
if _device_default in _device_options
167-
else 0
165+
_device_options.index(_device_default) if _device_default in _device_options else 0
168166
)
169167
device = st.selectbox(
170168
"모델 실행 장치",

interface/lang2sql.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,7 @@ def should_show(_key: str) -> bool:
305305
_device_options = ["cpu", "cuda"]
306306
_default_device = st.session_state.get("default_device", "cpu")
307307
_device_index = (
308-
_device_options.index(_default_device)
309-
if _default_device in _device_options
310-
else 0
308+
_device_options.index(_default_device) if _default_device in _device_options else 0
311309
)
312310
device = st.selectbox(
313311
"모델 실행 장치를 선택하세요:",

0 commit comments

Comments
 (0)