Spaces:
Runtime error
Runtime error
anonymoussubmitter222
commited on
Commit
·
723a836
1
Parent(s):
4b44857
run device = cpu
Browse files
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
title: Tunisian
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Code Switched Tunisian Speech Recognition
|
| 3 |
+
emoji: 🌶
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
app.py
CHANGED
|
@@ -347,6 +347,7 @@ french_asr_model.to("cpu")
|
|
| 347 |
cvhparams_file, cvrun_opts, cvoverrides = sb.parse_arguments(["EnglishCV/train_en_with_wav2vec.yaml"])
|
| 348 |
with open(cvhparams_file) as cvfin:
|
| 349 |
cvhparams = load_hyperpyyaml(cvfin, cvoverrides)
|
|
|
|
| 350 |
english_asr_model = ASRCV(
|
| 351 |
modules=cvhparams["modules"],
|
| 352 |
hparams=cvhparams,
|
|
@@ -700,6 +701,7 @@ if hparams["language_modelling"]:
|
|
| 700 |
|
| 701 |
|
| 702 |
|
|
|
|
| 703 |
|
| 704 |
mixer = Mixer(
|
| 705 |
modules=hparams["modules"],
|
|
@@ -725,7 +727,6 @@ decoder = build_ctcdecoder(
|
|
| 725 |
beta=1, # tuned on a val set
|
| 726 |
)
|
| 727 |
|
| 728 |
-
run_opts["device"]="cpu"
|
| 729 |
|
| 730 |
|
| 731 |
device = "cpu"
|
|
|
|
| 347 |
cvhparams_file, cvrun_opts, cvoverrides = sb.parse_arguments(["EnglishCV/train_en_with_wav2vec.yaml"])
|
| 348 |
with open(cvhparams_file) as cvfin:
|
| 349 |
cvhparams = load_hyperpyyaml(cvfin, cvoverrides)
|
| 350 |
+
cvrun_opts["device"]="cpu"
|
| 351 |
english_asr_model = ASRCV(
|
| 352 |
modules=cvhparams["modules"],
|
| 353 |
hparams=cvhparams,
|
|
|
|
| 701 |
|
| 702 |
|
| 703 |
|
| 704 |
+
run_opts["device"]="cpu"
|
| 705 |
|
| 706 |
mixer = Mixer(
|
| 707 |
modules=hparams["modules"],
|
|
|
|
| 727 |
beta=1, # tuned on a val set
|
| 728 |
)
|
| 729 |
|
|
|
|
| 730 |
|
| 731 |
|
| 732 |
device = "cpu"
|