(text)
| 281 | |
| 282 | |
| 283 | def clean_response(text): |
| 284 | text = text.translate(_UNICODE_REPLACEMENTS) |
| 285 | |
| 286 | # Remove leading non-letter characters |
| 287 | for i, char in enumerate(text): |
| 288 | if char.isalpha(): |
| 289 | return text[i:] |
| 290 | return text |
| 291 | |
| 292 | |
| 293 | @comfy_node(name="LTXVGemmaEnhancePrompt", description="Gemma 3 Prompt Enhancer") |