Spaces:
Runtime error
Runtime error
Commit
·
97b1e27
1
Parent(s):
f4980d3
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from stitched_model import CombinedModel
|
|
6 |
|
7 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
8 |
|
9 |
-
# Use facebook/mms-1b-all model for ASR and
|
10 |
model = CombinedModel("facebook/mms-1b-all", "Sunbird/sunbird-mul-en-mbart-merged", device=device)
|
11 |
|
12 |
def transcribe(audio_file_mic=None, audio_file_upload=None):
|
|
|
6 |
|
7 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
8 |
|
9 |
+
# Use facebook/mms-1b-all model for ASR and Sunbird/sunbird-mul-en-mbart-merged for translation
|
10 |
model = CombinedModel("facebook/mms-1b-all", "Sunbird/sunbird-mul-en-mbart-merged", device=device)
|
11 |
|
12 |
def transcribe(audio_file_mic=None, audio_file_upload=None):
|