EladSpamson commited on
Commit
e35f2fc
·
verified ·
1 Parent(s): 4dc8e9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ def stop():
21
  global stop_processing
22
  stop_processing = True
23
 
24
- def transcribe_30_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,7 +86,7 @@ def transcribe_30_seconds(audio_file):
86
 
87
  # Build Gradio UI with API support
88
  demo = gr.Interface(
89
- fn=transcribe_30_seconds,
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",