wangjin2000 commited on
Commit
98c88b0
1 Parent(s): bceac7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,8 +5,7 @@ import torch
5
  device = "cuda" if torch.cuda.is_available() else "cpu"
6
 
7
  # Inference with the pre-trained model
8
- #checkpoint1 = "microsoft/git-base"
9
- checkpoint1 = "vinid/plip"
10
  processor = AutoProcessor.from_pretrained(checkpoint1)
11
  #model1 = AutoModelForCausalLM.from_pretrained(checkpoint1, use_auth_token=access_token)
12
  model1 = AutoModelForCausalLM.from_pretrained(checkpoint1)
 
5
  device = "cuda" if torch.cuda.is_available() else "cpu"
6
 
7
  # Inference with the pre-trained model
8
+ checkpoint1 = "microsoft/git-base"
 
9
  processor = AutoProcessor.from_pretrained(checkpoint1)
10
  #model1 = AutoModelForCausalLM.from_pretrained(checkpoint1, use_auth_token=access_token)
11
  model1 = AutoModelForCausalLM.from_pretrained(checkpoint1)