Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import soundfile as sf
|
| 3 |
from faster_whisper import WhisperModel
|
| 4 |
|
| 5 |
-
model = WhisperModel("tiny
|
| 6 |
|
| 7 |
def transcribe_audio(audio):
|
| 8 |
sr, data = audio
|
|
|
|
| 2 |
import soundfile as sf
|
| 3 |
from faster_whisper import WhisperModel
|
| 4 |
|
| 5 |
+
model = WhisperModel("tiny", device="cpu", compute_type="int8")
|
| 6 |
|
| 7 |
def transcribe_audio(audio):
|
| 8 |
sr, data = audio
|