Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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"})
|