update
This commit is contained in:
parent
9bc3b5c8ca
commit
10077cf4c5
@ -142,6 +142,7 @@ if missing:
|
||||
#################################################################################################################
|
||||
|
||||
for missing_module in missing:
|
||||
if not missing_module=="transformers==2.3.0":
|
||||
msg(f"{BRK}!")
|
||||
log("SHELLED",f"INSTALLING MISSING PYTHON MODULE: {str(missing_module).upper()}",4)
|
||||
msg(f"!{BRK}!")
|
||||
@ -159,9 +160,16 @@ if missing:
|
||||
import torch.nn.functional as F
|
||||
elif missing_module=="tqdm":
|
||||
from tqdm import tqdm
|
||||
elif missing_module=="transformers==2.3.0":
|
||||
|
||||
#################################################################################################################
|
||||
#################################################################################################################
|
||||
|
||||
if "transformers==2.3.0" in missing:
|
||||
from transformers import GPT2Config, GPT2LMHeadModel, GPT2Tokenizer
|
||||
|
||||
#####################################################################################################################
|
||||
#####################################################################################################################
|
||||
|
||||
if not missing:
|
||||
import asyncio
|
||||
import sklearn
|
||||
|
Loading…
Reference in New Issue
Block a user