mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Disable GGML inference on Windows (#108)
This commit is contained in:
parent
01dfc5a020
commit
956d232dea
1 changed files with 11 additions and 10 deletions
19
gui.py
19
gui.py
|
|
@ -641,16 +641,17 @@ class MainWindow(QMainWindow):
|
|||
|
||||
self.settings = Settings(self)
|
||||
|
||||
enable_ggml_inference_action = QAction(
|
||||
'&Enable GGML Inference', self)
|
||||
enable_ggml_inference_action.setCheckable(True)
|
||||
enable_ggml_inference_action.setChecked(
|
||||
bool(self.settings.enable_ggml_inference()))
|
||||
enable_ggml_inference_action.triggered.connect(
|
||||
self.on_toggle_enable_ggml_inference)
|
||||
if platform.system() != 'Windows':
|
||||
enable_ggml_inference_action = QAction(
|
||||
'&Enable GGML Inference', self)
|
||||
enable_ggml_inference_action.setCheckable(True)
|
||||
enable_ggml_inference_action.setChecked(
|
||||
bool(self.settings.enable_ggml_inference()))
|
||||
enable_ggml_inference_action.triggered.connect(
|
||||
self.on_toggle_enable_ggml_inference)
|
||||
|
||||
self.settings_menu = menu.addMenu('&Settings')
|
||||
self.settings_menu.addAction(enable_ggml_inference_action)
|
||||
self.settings_menu = menu.addMenu('&Settings')
|
||||
self.settings_menu.addAction(enable_ggml_inference_action)
|
||||
|
||||
def on_import_audio_file_action(self):
|
||||
(file_path, _) = QFileDialog.getOpenFileName(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue