preston-cell commited on
Commit
1b7018a
·
verified ·
1 Parent(s): 516718c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,7 +11,9 @@ pipe = pipeline("text-to-speech", model="openai/whisper-large-v3-turbo")
11
  def launch(input_image):
12
  try:
13
  # Step 1: Generate caption
14
- caption = captioner(input_image)[0]['generated_text']
 
 
15
 
16
  # Step 2: Synthesize speech from caption
17
  speech = pipe(caption)
 
11
  def launch(input_image):
12
  try:
13
  # Step 1: Generate caption
14
+ out = captioner(input_image)
15
+ caption = out[0]['generated_text']
16
+
17
 
18
  # Step 2: Synthesize speech from caption
19
  speech = pipe(caption)