Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def transcribe(audio):
|
|
| 71 |
# —— Gradio UI ——
|
| 72 |
description = """
|
| 73 |
<p style='text-align: center'>
|
| 74 |
-
Record or upload audio in Urdu and get the transcribed text using the Whisper
|
| 75 |
</p>
|
| 76 |
"""
|
| 77 |
examples = [
|
|
@@ -79,13 +79,7 @@ examples = [
|
|
| 79 |
["samples/audio2.mp3"],
|
| 80 |
["samples/audio3.mp3"],
|
| 81 |
]
|
| 82 |
-
|
| 83 |
-
<p style='text-align: center; color: #34C759;'>
|
| 84 |
-
<a href='https://github.com/kingabzpro/simple-mlops-with-urdu-asr' target='_blank' style='text-decoration: none; color: #34C759;'>
|
| 85 |
-
🌿 Explore the project on GitHub 📚
|
| 86 |
-
</a>
|
| 87 |
-
</p>
|
| 88 |
-
"""
|
| 89 |
|
| 90 |
demo = gr.Interface(
|
| 91 |
fn=transcribe,
|
|
@@ -98,10 +92,9 @@ demo = gr.Interface(
|
|
| 98 |
label="Transcribed Text (Urdu)",
|
| 99 |
placeholder="Transcribed Urdu text will appear here...",
|
| 100 |
),
|
| 101 |
-
title="Urdu Speech Recognition",
|
| 102 |
description=description,
|
| 103 |
examples=examples,
|
| 104 |
-
article=article,
|
| 105 |
allow_flagging="never",
|
| 106 |
theme="JohnSmith9982/small_and_pretty",
|
| 107 |
)
|
|
|
|
| 71 |
# —— Gradio UI ——
|
| 72 |
description = """
|
| 73 |
<p style='text-align: center'>
|
| 74 |
+
Record or upload audio in Urdu and get the transcribed text using the Whisper Base Urdu model.
|
| 75 |
</p>
|
| 76 |
"""
|
| 77 |
examples = [
|
|
|
|
| 79 |
["samples/audio2.mp3"],
|
| 80 |
["samples/audio3.mp3"],
|
| 81 |
]
|
| 82 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
demo = gr.Interface(
|
| 85 |
fn=transcribe,
|
|
|
|
| 92 |
label="Transcribed Text (Urdu)",
|
| 93 |
placeholder="Transcribed Urdu text will appear here...",
|
| 94 |
),
|
| 95 |
+
title="Fast Urdu Speech Recognition",
|
| 96 |
description=description,
|
| 97 |
examples=examples,
|
|
|
|
| 98 |
allow_flagging="never",
|
| 99 |
theme="JohnSmith9982/small_and_pretty",
|
| 100 |
)
|