llama-order-model / preprocessing.py
gahyunlee's picture
Upload preprocessing.py with huggingface_hub
feb3d02 verified
raw
history blame contribute delete
153 Bytes
def preprocess_input(text):
text = text.replace(", ", ",").replace(",", ", ")
text = text.replace(": ", ":").replace(":", ": ")
return text