From 7de3b1cc4ba510d482366d2f8309b7707d0538dd Mon Sep 17 00:00:00 2001 From: decoded Date: Thu, 4 May 2023 09:41:29 -0500 Subject: [PATCH] update --- maple_localized.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maple_localized.py b/maple_localized.py index 5024e9d..7f36b2e 100644 --- a/maple_localized.py +++ b/maple_localized.py @@ -165,6 +165,11 @@ if missing: ################################################################################################################# if "transformers==2.3.0" in missing: + missing_module="transformers==2.3.0" + msg(f"{BRK}!") + log("SHELLED",f"INSTALLING MISSING PYTHON MODULE: {str(missing_module).upper()}",4) + msg(f"!{BRK}!") + run_cmd(f'{sys.executable} -um pip install {missing_module}') from transformers import GPT2Config, GPT2LMHeadModel, GPT2Tokenizer #####################################################################################################################