Spaces:
Paused
Paused
Edward Tang
commited on
Commit
·
8501912
1
Parent(s):
51c33c0
testing
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ model = SeamlessM4Tv2ForTextToText.from_pretrained("facebook/seamless-m4t-v2-lar
|
|
9 |
text_inputs = processor(text = "Hello, my dog is cute", src_lang="eng", return_tensors="pt")
|
10 |
|
11 |
# from text
|
12 |
-
output_tokens = model.generate(**text_inputs, tgt_lang="fra"
|
13 |
translated_text_from_text = processor.decode(output_tokens[0].tolist()[0], skip_special_tokens=True)
|
14 |
|
15 |
|
|
|
9 |
text_inputs = processor(text = "Hello, my dog is cute", src_lang="eng", return_tensors="pt")
|
10 |
|
11 |
# from text
|
12 |
+
output_tokens = model.generate(**text_inputs, tgt_lang="fra")
|
13 |
translated_text_from_text = processor.decode(output_tokens[0].tolist()[0], skip_special_tokens=True)
|
14 |
|
15 |
|