Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,9 +153,10 @@ class TTSDatasetCollector:
|
|
| 153 |
return False, error_msg
|
| 154 |
|
| 155 |
def get_styled_text(self, text: str) -> str:
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
|
|
|
| 159 |
|
| 160 |
def generate_filenames(self, dataset_name: str, speaker_id: str) -> Tuple[str, str]:
|
| 161 |
"""Generate unique filenames for audio and text files"""
|
|
|
|
| 153 |
return False, error_msg
|
| 154 |
|
| 155 |
def get_styled_text(self, text: str) -> str:
|
| 156 |
+
"""Get text with current font styling"""
|
| 157 |
+
font_css = FONT_STYLES[self.current_font]['css']
|
| 158 |
+
return f"<div style='{font_css}'>{text}</div>"
|
| 159 |
+
|
| 160 |
|
| 161 |
def generate_filenames(self, dataset_name: str, speaker_id: str) -> Tuple[str, str]:
|
| 162 |
"""Generate unique filenames for audio and text files"""
|