Spaces:
Running on Zero
Running on Zero
Fix indentation in load_variant (token + from_pretrained)
Browse files293 unmodified lines294295296297298299300301293 unmodified linesglobal _modelif _model["name"] == name:returntoken = os.environ.get("HF_TIPSv2") or os.environ.get("HF_TOKEN")dpt = AutoModel.from_pretrained(VARIANTS[name], trust_remote_code=True, token=token)dpt.eval()dpt._get_backbone() # trigger backbone downloadbackbone = dpt._backbone293 unmodified lines294295296297298299300301293 unmodified linesglobal _modelif _model["name"] == name:returntoken = os.environ.get("HF_TIPSv2") or os.environ.get("HF_TOKEN")dpt = AutoModel.from_pretrained(VARIANTS[name], trust_remote_code=True, token=token)dpt.eval()dpt._get_backbone() # trigger backbone downloadbackbone = dpt._backbone
app.py+2-2