Spaces:
Runtime error
Runtime error
alan
commited on
Commit
·
e4da99a
1
Parent(s):
6b1b908
req update
Browse files- app.py +4 -4
- requirements.txt +0 -1
app.py
CHANGED
@@ -40,10 +40,10 @@ DEFAULT_TARGET_LANGUAGE = "French"
|
|
40 |
|
41 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
processor = AutoProcessor.from_pretrained("facebook/hf-seamless-m4t-medium")
|
46 |
-
model = SeamlessM4TModel.from_pretrained("facebook/hf-seamless-m4t-medium").to(device)
|
47 |
|
48 |
|
49 |
@spaces.GPU
|
|
|
40 |
|
41 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
42 |
|
43 |
+
processor = AutoProcessor.from_pretrained("ylacombe/hf-seamless-m4t-large")
|
44 |
+
model = SeamlessM4TModel.from_pretrained("ylacombe/hf-seamless-m4t-large").to(device)
|
45 |
+
# processor = AutoProcessor.from_pretrained("facebook/hf-seamless-m4t-medium")
|
46 |
+
# model = SeamlessM4TModel.from_pretrained("facebook/hf-seamless-m4t-medium").to(device)
|
47 |
|
48 |
|
49 |
@spaces.GPU
|
requirements.txt
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
git+https://github.com/huggingface/transformers
|
2 |
torchaudio==2.0.2
|
3 |
sentencepiece
|
4 |
-
gradio==4.29.0
|
5 |
numpy==1.26.4
|
6 |
protobuf
|
|
|
1 |
git+https://github.com/huggingface/transformers
|
2 |
torchaudio==2.0.2
|
3 |
sentencepiece
|
|
|
4 |
numpy==1.26.4
|
5 |
protobuf
|