Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,8 @@ asr_pipeline = pipeline("automatic-speech-recognition", model=model_name)
|
|
8 |
|
9 |
def transcribe(filepath):
|
10 |
# Assuming the file is named 'audio.wav'
|
11 |
-
audio_file = "example_1.wav"
|
12 |
-
|
13 |
# Run the transcription
|
14 |
-
return asr_pipeline(
|
15 |
|
16 |
|
17 |
demo = gr.Interface(fn=transcribe, inputs=[gr.Audio(type='filepath')], outputs="text")
|
|
|
8 |
|
9 |
def transcribe(filepath):
|
10 |
# Assuming the file is named 'audio.wav'
|
|
|
|
|
11 |
# Run the transcription
|
12 |
+
return asr_pipeline(filepath)
|
13 |
|
14 |
|
15 |
demo = gr.Interface(fn=transcribe, inputs=[gr.Audio(type='filepath')], outputs="text")
|