Add-Vishnu commited on
Commit
cd321a3
1 Parent(s): 45398e7

Commented base model and using medium model

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,7 +10,8 @@ import subprocess
10
  from pywhispercpp.model import Model
11
 
12
  # model = Model('base.en', n_threads=6,models_dir="./Models") # Only english
13
- model = Model('base', n_threads=6,models_dir="./Models",language="hindi",translate=False) # Multilingual
 
14
 
15
  def resample_to_16k(audio, orig_sr):
16
  y_resampled = librosa.resample(y=audio, orig_sr=orig_sr, target_sr = 16000)
 
10
  from pywhispercpp.model import Model
11
 
12
  # model = Model('base.en', n_threads=6,models_dir="./Models") # Only english
13
+ # model = Model('base', n_threads=6,models_dir="./Models",language="hindi",translate=False) # Multilingual
14
+ model = Model('medium-q5_0', n_threads=6,models_dir="./Models",language="hindi",translate=False) # Multilingual
15
 
16
  def resample_to_16k(audio, orig_sr):
17
  y_resampled = librosa.resample(y=audio, orig_sr=orig_sr, target_sr = 16000)