aboutsummaryrefslogtreecommitdiff
path: root/app/backends/qwen.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-26 18:18:21 -0400
committerhistoria <historiavg@proton.me>2026-08-26 18:18:21 -0400
commit544486a374cd5cae7acce1302648d8dad079db48 (patch)
tree5987cdb6790844252ec655465eacea8ae526e3a8 /app/backends/qwen.py
parent6ccb6d443d2fb871b43d96ea61a95bc3e6a92355 (diff)
downloadtts-audiobook-generator-544486a374cd5cae7acce1302648d8dad079db48.tar.gz
fix: default directory when choosing voices in tui
Diffstat (limited to 'app/backends/qwen.py')
-rw-r--r--app/backends/qwen.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/backends/qwen.py b/app/backends/qwen.py
index 5f45580..592b0eb 100644
--- a/app/backends/qwen.py
+++ b/app/backends/qwen.py
@@ -33,7 +33,7 @@ from backends import (
)
from converter import config
from converter.clients import QWEN3_TTS_SPEAKERS
-from ui import taskview, tui
+from ui import taskview
QWEN_PIP_PKG = "qwen-tts"
QWEN_CUSTOMVOICE_MODEL = "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"
@@ -107,14 +107,13 @@ def setup_screen(stdscr) -> int:
"""Run the setup on an existing curses screen (the hub's).
There are no questions: settings are computed up front and the install
- runs inside the TUI task view on this same screen (skipped entirely
- when nothing needs installing). Returns 0 always — the flow cannot be
- aborted, so Esc/Ctrl-C never short-circuits it.
+ runs inside the TUI task view on this same screen — skipped entirely
+ (a silent no-op) when nothing needs installing. Returns 0 always —
+ the flow cannot be aborted, so Esc/Ctrl-C never short-circuits it.
"""
args = build_parser().parse_args([])
settings = _wizard(stdscr, args)
if not settings["do_install"]:
- tui.flash(stdscr, "qwen-tts is already installed.", "ok")
return 0
return taskview.run_steps(stdscr, "Setting up qwen-tts",
_execute_steps(settings))