Commit 2d1bbdf
committed
fix(execution): parse DICTEE_FORCE_CPU as truthy, not presence (release 1.3)
cuda_runtime_available() used var_os(...).is_some(), so the value "0"
written by dictee-setup's Force CPU toggle when OFF was still treated as
"force CPU" — silently disabling the GPU for Parakeet/Canary on any user
who opened and applied the ASR settings page (the default state). Parse
"1"/"true"/"yes" as truthy, like the Whisper daemon already does and as
save_config's own comment already claims. Backport of master's existing
implementation. Fixes the v1.3.5 regression introduced with the Force CPU
toggle.1 parent 7c157e9 commit 2d1bbdf
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
| |||
0 commit comments