Spaces:
Runtime error
Runtime error
wangjin2000
commited on
Commit
•
3ec479a
1
Parent(s):
672c8e9
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",
|
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)
|