drrobot9's picture
Upload folder using huggingface_hub
371d12f verified
Raw
History Blame Contribute Delete
159 Bytes
def prepare_user_message(text: str) -> str:
text = text.strip()
if not text:
raise ValueError("User message cannot be empty.")
return text