Update app.py
Browse files
app.py
CHANGED
@@ -28,11 +28,19 @@ def transcribe_audio(file_path):
|
|
28 |
else:
|
29 |
return f"Error: {response.status_code}, {response.text}"
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
# Set up the Gradio interface
|
32 |
gr.Interface(
|
33 |
fn=transcribe_audio,
|
34 |
inputs=gr.Audio(type="filepath"), # Updated here
|
35 |
outputs="text",
|
36 |
-
title="Persian ASR
|
37 |
-
description="Upload an audio file in Persian, and this
|
38 |
).launch()
|
|
|
28 |
else:
|
29 |
return f"Error: {response.status_code}, {response.text}"
|
30 |
|
31 |
+
|
32 |
+
description_text = """
|
33 |
+
The Gooya model is one of the most [powerful](https://huggingface.co/spaces/navidved/open_persian_asr_leaderboard) and fastest Persian ASR models.
|
34 |
+
|
35 |
+
Upload an audio file in Persian, and this Model will transcribe it.
|
36 |
+
"""
|
37 |
+
|
38 |
+
|
39 |
# Set up the Gradio interface
|
40 |
gr.Interface(
|
41 |
fn=transcribe_audio,
|
42 |
inputs=gr.Audio(type="filepath"), # Updated here
|
43 |
outputs="text",
|
44 |
+
title="Gooya v1 Persian ASR",
|
45 |
+
description="The Gooya model is one of the most powerful and fastest Persian ASR models. Upload an audio file in Persian, and this Model will transcribe it."
|
46 |
).launch()
|