Aumkeshchy2003 commited on
Commit
3634d67
·
verified ·
1 Parent(s): 7c6253c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import torch
6
  import soundfile as sf
7
  import os
8
 
9
- # Load models and processors
10
  processor = AutoProcessor.from_pretrained("Aumkeshchy2003/speecht5_finetuned_Aumkesh_tr")
11
  model = AutoModelForTextToSpectrogram.from_pretrained("Aumkeshchy2003/speecht5_finetuned_Aumkesh_tr")
12
  vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
 
6
  import soundfile as sf
7
  import os
8
 
9
+ # Load model directly
10
  processor = AutoProcessor.from_pretrained("Aumkeshchy2003/speecht5_finetuned_Aumkesh_tr")
11
  model = AutoModelForTextToSpectrogram.from_pretrained("Aumkeshchy2003/speecht5_finetuned_Aumkesh_tr")
12
  vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")