Spaces:
Running
Running
Introduced a clean and user-friendly Gradio interface for the Gooya Persian ASR system
#3
by
funlifew
- opened
app.py
CHANGED
@@ -34,17 +34,24 @@ def transcribe_audio(file_path):
|
|
34 |
|
35 |
|
36 |
# Set up the Gradio interface
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
""
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
|
36 |
# Set up the Gradio interface
|
37 |
+
def launch_interface():
|
38 |
+
gr.Interface(
|
39 |
+
fn=transcribe_audio,
|
40 |
+
inputs=gr.Audio(type="filepath", label="Upload Audio (Max 30s)"),
|
41 |
+
outputs=[
|
42 |
+
gr.Textbox(label="📝 Transcription"),
|
43 |
+
gr.Textbox(label="⏱️ Inference Time (s)")
|
44 |
+
],
|
45 |
+
title="🗣️ Gooya v1.4 – Persian ASR",
|
46 |
+
description=(
|
47 |
+
"The **Gooya Persian ASR** model is crazy fast and incredibly [powerful]"
|
48 |
+
"(https://huggingface.co/spaces/navidved/open_persian_asr_leaderboard) "
|
49 |
+
"when it comes to Persian speech recognition!\n\n"
|
50 |
+
"🎤 Just drop a short Persian audio clip (max 30s), and boom — "
|
51 |
+
"you’ll get a top-notch transcription instantly. 🚀🔥"
|
52 |
+
),
|
53 |
+
theme="default",
|
54 |
+
allow_flagging="never"
|
55 |
+
).launch()
|
56 |
+
|
57 |
+
launch_interface()
|