navidved commited on
Commit
8f10bd1
·
verified ·
1 Parent(s): b3bf0e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import librosa
7
  model = WhisperModel("navidved/Goya-v1-ct2", device="cpu", compute_type="int8", local_files_only=False)
8
 
9
  # Define the maximum audio length in seconds
10
- MAX_AUDIO_LENGTH = 15 # seconds
11
 
12
  # Define the inference function
13
  def transcribe_audio(audio):
@@ -32,7 +32,7 @@ def transcribe_audio(audio):
32
 
33
  # Create a Gradio interface for uploading audio or using the microphone
34
  with gr.Blocks() as interface:
35
- gr.Markdown("# Whisper Large V3 Speech Recognition")
36
  gr.Markdown("Upload an audio file or use your microphone to transcribe speech to text.")
37
 
38
  # Create the input and output components
 
7
  model = WhisperModel("navidved/Goya-v1-ct2", device="cpu", compute_type="int8", local_files_only=False)
8
 
9
  # Define the maximum audio length in seconds
10
+ MAX_AUDIO_LENGTH = 35 # seconds
11
 
12
  # Define the inference function
13
  def transcribe_audio(audio):
 
32
 
33
  # Create a Gradio interface for uploading audio or using the microphone
34
  with gr.Blocks() as interface:
35
+ gr.Markdown("# Gooya v1 Speech Recognition")
36
  gr.Markdown("Upload an audio file or use your microphone to transcribe speech to text.")
37
 
38
  # Create the input and output components