jayparmr's picture
Upload folder using huggingface_hub
a3d6c18
raw
history blame contribute delete
232 Bytes
def error_dict(error_text: str):
"""
Generates a dictionary containing $error_text error
:param error_text: Error text
:return: error dictionary
"""
resp = {"errors": [{"title": error_text}]}
return resp