philipp-zettl commited on
Commit
aad3791
·
verified ·
1 Parent(s): da34736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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(audio_file)
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")