Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
3b293d4
1
Parent(s):
1bc81f7
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
classifier = EncoderClassifier.from_hparams(source="speechbrain/lang-id-commonlanguage_ecapa", savedir="pretrained_models/lang-id-commonlanguage_ecapa")
|
6 |
def speechbrain(aud):
|
7 |
out_prob, score, index, text_lab = classifier.classify_file(aud.name)
|
8 |
-
return text_lab
|
9 |
|
10 |
inputs = gr.inputs.Audio(label="Input Audio", type="file")
|
11 |
outputs = "text"
|
|
|
5 |
classifier = EncoderClassifier.from_hparams(source="speechbrain/lang-id-commonlanguage_ecapa", savedir="pretrained_models/lang-id-commonlanguage_ecapa")
|
6 |
def speechbrain(aud):
|
7 |
out_prob, score, index, text_lab = classifier.classify_file(aud.name)
|
8 |
+
return text_lab[0]
|
9 |
|
10 |
inputs = gr.inputs.Audio(label="Input Audio", type="file")
|
11 |
outputs = "text"
|