tiny to base
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from faster_whisper import WhisperModel
|
3 |
|
4 |
device = "cpu"
|
5 |
-
model_size = "
|
6 |
compute_type = "int8"
|
7 |
|
8 |
model = WhisperModel(model_size, device=device, compute_type=compute_type)
|
@@ -13,7 +13,7 @@ def transcribe(audio):
|
|
13 |
|
14 |
gr.Interface(
|
15 |
title = 'Fast Whisper for Speech Recognition',
|
16 |
-
description = 'This is a
|
17 |
fn=transcribe,
|
18 |
inputs=[
|
19 |
gr.inputs.Audio(source="microphone", type="filepath")
|
|
|
2 |
from faster_whisper import WhisperModel
|
3 |
|
4 |
device = "cpu"
|
5 |
+
model_size = "base"
|
6 |
compute_type = "int8"
|
7 |
|
8 |
model = WhisperModel(model_size, device=device, compute_type=compute_type)
|
|
|
13 |
|
14 |
gr.Interface(
|
15 |
title = 'Fast Whisper for Speech Recognition',
|
16 |
+
description = 'This is a base version running on CPU with int8 compute type due to limited resources. These choices can slightly reduce accuracy.',
|
17 |
fn=transcribe,
|
18 |
inputs=[
|
19 |
gr.inputs.Audio(source="microphone", type="filepath")
|