diff --git a/abogen/webui/service.py b/abogen/webui/service.py index 05afab6..21b8d05 100644 --- a/abogen/webui/service.py +++ b/abogen/webui/service.py @@ -204,7 +204,7 @@ class Job: "queue_position": self.queue_position, "options": { "tts_provider": getattr(self, "tts_provider", "kokoro"), - "supertonic_total_steps": getattr(self, "supertonic_total_steps", 8, + "supertonic_total_steps": getattr(self, "supertonic_total_steps", 8), "save_chapters_separately": self.save_chapters_separately, "merge_chapters_at_end": self.merge_chapters_at_end, "separate_chapters_format": self.separate_chapters_format, @@ -1147,7 +1147,7 @@ class ConversionService: "tts_provider": getattr(job, "tts_provider", "kokoro"), "voice": job.voice, "speed": job.speed, - "supertonic_total_steps": getattr(job, "supertonic_total_steps", 8, + "supertonic_total_steps": getattr(job, "supertonic_total_steps", 8), "use_gpu": job.use_gpu, "subtitle_mode": job.subtitle_mode, "output_format": job.output_format, @@ -1275,7 +1275,7 @@ class ConversionService: replace_single_newlines=bool(payload.get("replace_single_newlines", False)), subtitle_format=payload.get("subtitle_format", "srt"), created_at=float(payload.get("created_at", time.time())), - supertonic_total_steps=int(payload.get("supertonic_total_steps", 8), + supertonic_total_steps=int(payload.get("supertonic_total_steps", 8)), save_chapters_separately=bool(payload.get("save_chapters_separately", False)), merge_chapters_at_end=bool(payload.get("merge_chapters_at_end", True)), separate_chapters_format=payload.get("separate_chapters_format", "wav"), diff --git a/abogen/webui/templates/partials/new_job_step_book.html b/abogen/webui/templates/partials/new_job_step_book.html index d4f2d10..27abb9b 100644 --- a/abogen/webui/templates/partials/new_job_step_book.html +++ b/abogen/webui/templates/partials/new_job_step_book.html @@ -39,7 +39,7 @@ {% if pending and pending.supertonic_total_steps is not none %} {% set supertonic_steps_value = pending.supertonic_total_steps %} {% else %} - {% set supertonic_steps_value = settings_dict.get('supertonic_total_steps', 8 %} + {% set supertonic_steps_value = settings_dict.get('supertonic_total_steps', 8) %} {% endif %} {% endif %} {% if supertonic_steps_value is not none and supertonic_steps_value is string %}