Devarsh24 commited on
Commit
10a06e9
·
verified ·
1 Parent(s): d313333

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,10 +16,10 @@ from transformers import pipeline
16
 
17
  device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
18
 
19
- narrator = pipeline("text-to-speech", model="kakao-enterprise/vits-ljs")
20
 
21
  # Load the pretrained weights
22
- caption_image = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large", device=device)
23
 
24
 
25
  # Define the function to generate audio from text
 
16
 
17
  device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
18
 
19
+ narrator = pipeline("text-to-speech", model="facebook/mms-tts-en")
20
 
21
  # Load the pretrained weights
22
+ caption_image = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
23
 
24
 
25
  # Define the function to generate audio from text