mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
Fix syntax errors in supertonic_total_steps retrieval in service.py and new_job_step_book.html
This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user