wangjin2000
commited on
Commit
·
9b0261c
1
Parent(s):
3ec479a
Update app.py
Browse files
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="
|
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)
|