From dcbbd7af793d5a79fe3ee63c280c291fb2f36422 Mon Sep 17 00:00:00 2001 From: Dan Saunders Date: Thu, 20 Mar 2025 10:38:01 -0400 Subject: [PATCH] sorry to revert, but pylint complained --- scripts/cutcrossentropy_install.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cutcrossentropy_install.py b/scripts/cutcrossentropy_install.py index b95875c00..396f4a655 100644 --- a/scripts/cutcrossentropy_install.py +++ b/scripts/cutcrossentropy_install.py @@ -18,12 +18,12 @@ if v < V("2.4.0"): cce_spec = importlib.util.find_spec("cut_cross_entropy") -uninstall_prefix = "" +UNINSTALL_PREFIX = "" if cce_spec: if not importlib.util.find_spec("cut_cross_entropy.transformers"): - uninstall_prefix = "pip uninstall -y cut-cross-entropy && " + UNINSTALL_PREFIX = "pip uninstall -y cut-cross-entropy && " print( - uninstall_prefix + UNINSTALL_PREFIX + 'pip install "cut-cross-entropy[transformers] @ git+https://github.com/apple/ml-cross-entropy.git@24fbe4b5dab9a6c250a014573613c1890190536c"' )