Samuel L Meyers commited on
Commit
2df411b
·
1 Parent(s): 9dd385e
Files changed (2) hide show
  1. app.py +3 -3
  2. tmp.wav +0 -0
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
- model = VitsModel.from_pretrained("facebook/mms-tts-eng")
7
- tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-eng")
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