Samuel L Meyers
commited on
Commit
·
2df411b
1
Parent(s):
9dd385e
autom4t
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
-
from transformers import VitsModel, AutoTokenizer
|
3 |
import torch
|
4 |
import scipy.io.wavfile as wavfile
|
|
|
5 |
|
6 |
-
|
7 |
-
|
8 |
|
9 |
text = "some example text in the English language"
|
10 |
|
|
|
1 |
import gradio as gr
|
|
|
2 |
import torch
|
3 |
import scipy.io.wavfile as wavfile
|
4 |
+
from transformers import AutoProcessor, SeamlessM4TModel
|
5 |
|
6 |
+
tokenizer = AutoProcessor.from_pretrained("facebook/hf-seamless-m4t-medium")
|
7 |
+
model = SeamlessM4TModel.from_pretrained("facebook/hf-seamless-m4t-medium")
|
8 |
|
9 |
text = "some example text in the English language"
|
10 |
|
tmp.wav
ADDED
File without changes
|