Spaces:
Running
Running
Update app.py
Browse files
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 =
|
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("#
|
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
|