Spaces:
Paused
Paused
avinash commited on
Commit ·
d425d6c
1
Parent(s): 2ddcf2d
asr2
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
# app.py
|
| 2 |
import gradio as gr
|
| 3 |
from asr import transcribe_audio
|
| 4 |
|
|
@@ -9,11 +8,11 @@ def process_audio(audio):
|
|
| 9 |
|
| 10 |
ui = gr.Interface(
|
| 11 |
fn=process_audio,
|
| 12 |
-
inputs=gr.Audio(
|
| 13 |
-
outputs="
|
| 14 |
-
title="🎤 Whisper ASR
|
| 15 |
-
description="
|
| 16 |
)
|
| 17 |
|
| 18 |
if __name__ == "__main__":
|
| 19 |
-
ui.launch()
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from asr import transcribe_audio
|
| 3 |
|
|
|
|
| 8 |
|
| 9 |
ui = gr.Interface(
|
| 10 |
fn=process_audio,
|
| 11 |
+
inputs=gr.Audio(type="filepath", label="Upload your voice (.wav / .mp3)"),
|
| 12 |
+
outputs=gr.Textbox(label="Transcribed Text"),
|
| 13 |
+
title="🎤 Whisper Tiny ASR Demo",
|
| 14 |
+
description="Upload a voice file. It uses Whisper-tiny for transcription."
|
| 15 |
)
|
| 16 |
|
| 17 |
if __name__ == "__main__":
|
| 18 |
+
ui.launch()
|