azamat commited on
Commit
80fa84e
1 Parent(s): ef95f06

tiny to base

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from faster_whisper import WhisperModel
3
 
4
  device = "cpu"
5
- model_size = "tiny"
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 tiny 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")
 
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")