Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,10 @@ from faster_whisper import WhisperModel
|
|
4 |
import librosa
|
5 |
|
6 |
# Load the model
|
7 |
-
model = WhisperModel("navidved/
|
8 |
|
9 |
# Define the maximum audio length in seconds
|
10 |
-
MAX_AUDIO_LENGTH =
|
11 |
|
12 |
# Define the inference function
|
13 |
def transcribe_audio(audio):
|
|
|
4 |
import librosa
|
5 |
|
6 |
# Load the model
|
7 |
+
model = WhisperModel("navidved/faster-gooya-v1", device="cpu", compute_type="int8", local_files_only=False)
|
8 |
|
9 |
# Define the maximum audio length in seconds
|
10 |
+
MAX_AUDIO_LENGTH = 30 # seconds
|
11 |
|
12 |
# Define the inference function
|
13 |
def transcribe_audio(audio):
|