Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def stop():
|
|
21 |
global stop_processing
|
22 |
stop_processing = True
|
23 |
|
24 |
-
def
|
25 |
"""
|
26 |
Process only the first 30 seconds of the audio, in small 5-second chunks.
|
27 |
Return partial text chunk by chunk (generator).
|
@@ -86,7 +86,7 @@ def transcribe_30_seconds(audio_file):
|
|
86 |
|
87 |
# Build Gradio UI with API support
|
88 |
demo = gr.Interface(
|
89 |
-
fn=
|
90 |
inputs=gr.Audio(type="filepath"),
|
91 |
outputs="text",
|
92 |
title="Hebrew Whisper API",
|
|
|
21 |
global stop_processing
|
22 |
stop_processing = True
|
23 |
|
24 |
+
def transcribe_3600_seconds(audio_file):
|
25 |
"""
|
26 |
Process only the first 30 seconds of the audio, in small 5-second chunks.
|
27 |
Return partial text chunk by chunk (generator).
|
|
|
86 |
|
87 |
# Build Gradio UI with API support
|
88 |
demo = gr.Interface(
|
89 |
+
fn=transcribe_3600_seconds,
|
90 |
inputs=gr.Audio(type="filepath"),
|
91 |
outputs="text",
|
92 |
title="Hebrew Whisper API",
|