Update app.py
Browse files
app.py
CHANGED
|
@@ -20,11 +20,11 @@ caption_image = pipeline("image-to-text",
|
|
| 20 |
narrator = pipeline("text-to-speech",
|
| 21 |
model="kakao-enterprise/vits-ljs")
|
| 22 |
|
| 23 |
-
caption_image = pipeline("image-to-text",
|
| 24 |
-
|
| 25 |
|
| 26 |
-
narrator = pipeline("text-to-speech",
|
| 27 |
-
|
| 28 |
|
| 29 |
def generate_audio(text):
|
| 30 |
# Generate the narrated text
|
|
|
|
| 20 |
narrator = pipeline("text-to-speech",
|
| 21 |
model="kakao-enterprise/vits-ljs")
|
| 22 |
|
| 23 |
+
# caption_image = pipeline("image-to-text",
|
| 24 |
+
# model=model_path, device=device)
|
| 25 |
|
| 26 |
+
# narrator = pipeline("text-to-speech",
|
| 27 |
+
# model=tts_model_path)
|
| 28 |
|
| 29 |
def generate_audio(text):
|
| 30 |
# Generate the narrated text
|