Spaces:
Runtime error
Runtime error
Abid
commited on
Commit
β’
f2c7285
1
Parent(s):
25df624
descriptions are hard to add
Browse files- Gradio/app.py +2 -9
Gradio/app.py
CHANGED
@@ -29,21 +29,14 @@ def asr(audio):
|
|
29 |
|
30 |
asr = pipeline("automatic-speech-recognition", model=Model)
|
31 |
prediction = asr(audio, chunk_length_s=5, stride_length_s=1)
|
32 |
-
return prediction
|
33 |
|
34 |
|
35 |
################### Gradio Web APP ################################
|
36 |
|
37 |
title = "Urdu Automatic Speech Recognition"
|
38 |
|
39 |
-
description = """
|
40 |
-
<p>
|
41 |
-
<center>
|
42 |
-
This model is a fine-tuned version of facebook/wav2vec2-xls-r-300m on the common_voice dataset.
|
43 |
-
<img src="https://huggingface.co/spaces/kingabzpro/Urdu-ASR-SOTA/blob/main/Images/cover.jpg" alt="logo" width="250"/>
|
44 |
-
</center>
|
45 |
-
</p>
|
46 |
-
"""
|
47 |
article = """<p style='text-align: center'>
|
48 |
<a href='https://dagshub.com/kingabzpro/Urdu-ASR-SOTA' target='_blank'>
|
49 |
Source Code on DagsHub</a>
|
29 |
|
30 |
asr = pipeline("automatic-speech-recognition", model=Model)
|
31 |
prediction = asr(audio, chunk_length_s=5, stride_length_s=1)
|
32 |
+
return prediction["text"]
|
33 |
|
34 |
|
35 |
################### Gradio Web APP ################################
|
36 |
|
37 |
title = "Urdu Automatic Speech Recognition"
|
38 |
|
39 |
+
description = """<p><center>This model is a fine-tuned version of facebook/wav2vec2-xls-r-300m on the common_voice dataset.<img src="https://huggingface.co/spaces/kingabzpro/Urdu-ASR-SOTA/resolve/main/Images/cover.jpg" alt="logo" width="350"/></center></p>"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
article = """<p style='text-align: center'>
|
41 |
<a href='https://dagshub.com/kingabzpro/Urdu-ASR-SOTA' target='_blank'>
|
42 |
Source Code on DagsHub</a>
|