Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import librosa
|
|
8 |
model = WhisperModel("navidved/persian-whisper-large-v3-ct2", device="cpu", compute_type="int8", local_files_only=False)
|
9 |
|
10 |
# Define the maximum audio length in seconds
|
11 |
-
MAX_AUDIO_LENGTH =
|
12 |
|
13 |
# Define the inference function
|
14 |
def transcribe_audio(audio):
|
|
|
8 |
model = WhisperModel("navidved/persian-whisper-large-v3-ct2", device="cpu", compute_type="int8", local_files_only=False)
|
9 |
|
10 |
# Define the maximum audio length in seconds
|
11 |
+
MAX_AUDIO_LENGTH = 15 # seconds
|
12 |
|
13 |
# Define the inference function
|
14 |
def transcribe_audio(audio):
|