Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,11 @@ from transformers import pipeline
|
|
3 |
|
4 |
pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
narrator = pipeline("text-to-speech", model="kakao-enterprise/vits-ljs")
|
7 |
|
8 |
def launch(input_image):
|
|
|
3 |
|
4 |
pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
|
5 |
|
6 |
+
from phonemizer.backend import EspeakBackend
|
7 |
+
import os
|
8 |
+
|
9 |
+
os.environ["PHONEMIZER_BACKEND"] = "espeak"
|
10 |
+
|
11 |
narrator = pipeline("text-to-speech", model="kakao-enterprise/vits-ljs")
|
12 |
|
13 |
def launch(input_image):
|