Alimubariz124 commited on
Commit
36cffb4
·
verified ·
1 Parent(s): b0b7514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,8 +30,8 @@ pipe = pipeline(
30
 
31
  def transcribe_audio(audio_file):
32
  # Check if audio file is None
33
- if audio_file is None:
34
- raise ValueError("Input audio file is None.")
35
 
36
  # Use the pipeline to transcribe audio
37
  result = pipe(audio_file, generate_kwargs={"language": "english"})
 
30
 
31
  def transcribe_audio(audio_file):
32
  # Check if audio file is None
33
+ #if audio_file is None:
34
+ # raise ValueError("Input audio file is None.")
35
 
36
  # Use the pipeline to transcribe audio
37
  result = pipe(audio_file, generate_kwargs={"language": "english"})