daniyal commited on
Commit
fda2fcb
·
1 Parent(s): daf9786

change model to our FT on indicvoice dataset

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,7 +7,9 @@ import io
7
  device = "cuda" if torch.cuda.is_available() else "cpu"
8
 
9
 
10
- model_path = "Danyal-AI/whisper-small-FT_on_lahaja"
 
 
11
  tokenizer = WhisperTokenizer.from_pretrained(model_path, language="Hindi", task="transcribe")
12
  feature_extractor = WhisperProcessor.from_pretrained(model_path, language="Hindi", task="transcribe")
13
  model = WhisperForConditionalGeneration.from_pretrained(model_path).to(device)
 
7
  device = "cuda" if torch.cuda.is_available() else "cpu"
8
 
9
 
10
+ #model_path = "Danyal-AI/whisper-small-FT_on_lahaja"
11
+ model_path= "Danyal-AI/Whisper-FT_on_indicVoices"
12
+
13
  tokenizer = WhisperTokenizer.from_pretrained(model_path, language="Hindi", task="transcribe")
14
  feature_extractor = WhisperProcessor.from_pretrained(model_path, language="Hindi", task="transcribe")
15
  model = WhisperForConditionalGeneration.from_pretrained(model_path).to(device)