wangjin2000 commited on
Commit
9b0261c
1 Parent(s): 3ec479a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ checkpoint2 = "wangjin2000/git-base-finetune"
15
  #model2 = AutoModelForCausalLM.from_pretrained(checkpoint2, use_auth_token=access_token)
16
  model2 = AutoModelForCausalLM.from_pretrained(checkpoint2)
17
 
18
- en_zh_translator = pipeline("translation",model=""Helsinki-NLP/opus-mt-zh-en")
19
 
20
  def img2cap_com(image):
21
  input1 = processor(images=image, return_tensors="pt").to(device)
 
15
  #model2 = AutoModelForCausalLM.from_pretrained(checkpoint2, use_auth_token=access_token)
16
  model2 = AutoModelForCausalLM.from_pretrained(checkpoint2)
17
 
18
+ en_zh_translator = pipeline("translation",model="Helsinki-NLP/opus-mt-zh-en")
19
 
20
  def img2cap_com(image):
21
  input1 = processor(images=image, return_tensors="pt").to(device)