in model-gallery/deploy/mllm/webui_client.py [0:0]
def _remove_image_special(text): text = text.replace("<ref>", "").replace("</ref>", "") return re.sub(r"<box>.*?(</box>|$)", "", text)