wangjin2000
commited on
Commit
•
4e3af87
1
Parent(s):
fafd14d
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ model2 = AutoModelForCausalLM.from_pretrained(checkpoint2)
|
|
17 |
|
18 |
#en_zh_translator = pipeline("translation",model="Helsinki-NLP/opus-mt-en-zh")
|
19 |
#en_zh_translator = pipeline("translation",model="Randeng-Deltalm-362M-En-Zh", src_lang = 'en', tgt_lang = 'zh')
|
20 |
-
en_zh_translator = pipeline("translation",model="
|
21 |
|
22 |
def img2cap_com(image):
|
23 |
input1 = processor(images=image, return_tensors="pt").to(device)
|
|
|
17 |
|
18 |
#en_zh_translator = pipeline("translation",model="Helsinki-NLP/opus-mt-en-zh")
|
19 |
#en_zh_translator = pipeline("translation",model="Randeng-Deltalm-362M-En-Zh", src_lang = 'en', tgt_lang = 'zh')
|
20 |
+
en_zh_translator = pipeline("translation",model="liam168/trans-opus-mt-en-zh")
|
21 |
|
22 |
def img2cap_com(image):
|
23 |
input1 = processor(images=image, return_tensors="pt").to(device)
|