Skip to content

Commit 3521652

Browse files
author
karel26
committed
BUGFIX:
- SkyEye didn't work with API keys
1 parent d1ec902 commit 3521652

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extensions/skyeye/extension.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,11 @@ def run_subprocess():
182182
out = subprocess.PIPE if self.config.get('debug', False) else subprocess.DEVNULL
183183
args = [
184184
self.get_exe_path(),
185-
'--config-file', self.get_config(),
186-
'--whisper-model', 'whisper.bin'
185+
'--config-file', self.get_config()
187186
]
187+
if self.locals.get('recognizer', 'openai-whisper-local') == 'openai-whisper-local':
188+
args.extend(['--whisper-model', 'whisper.bin'])
189+
188190
self.log.debug("Launching {}".format(' '.join(args)))
189191
proc = subprocess.Popen(
190192
args, cwd=os.path.dirname(self.get_exe_path()), stdout=out, stderr=subprocess.STDOUT, close_fds=True

0 commit comments

Comments
 (0)