from src.web.utils import create_status_html
class HTMLGenerator:
@staticmethod
def generate_error(text: str) -> str:
return create_status_html("Error", [], error_text=text)
@staticmethod
def generate_status(stage_title: str, steps: list[tuple[str, bool]]) -> str:
return create_status_html(stage_title, steps) + ""
@staticmethod
def generate_text_split(text_split_html: str) -> str:
return f'''
Text Split by Character:
{text_split_html}
'''
@staticmethod
def generate_voice_assignments(voice_assignments_html: str) -> str:
return f'''
Voice Assignments:
{voice_assignments_html}
'''
@staticmethod
def generate_message_without_voice_id() -> str:
return '''
🫤 At first you should add your voice
'''
@staticmethod
def generate_final_message() -> str:
return '''
🎉 Your audiobook is ready!
'''