Update app.py
Browse files59 unmodified lines6061626364656659 unmodified lines#Get the projection modelimg_proj_head = _MLPVectorProjector(512, 2560, 1, 4).to("cpu")img_proj_head.load_state_dict(torch.load('projection_finetuned.pth'))#Get the fine-tuned phi-2 modelphi2_finetuned = AutoModelForCausalLM.from_pretrained(59 unmodified lines6061626364656659 unmodified lines#Get the projection modelimg_proj_head = _MLPVectorProjector(512, 2560, 1, 4).to("cpu")img_proj_head.load_state_dict(torch.load('projection_finetuned.pth', map_location=torch.device('cpu')))#Get the fine-tuned phi-2 modelphi2_finetuned = AutoModelForCausalLM.from_pretrained(
app.py+1-1