SandraCLV commited on
Commit
d8bdfb6
1 Parent(s): fd48142

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,8 @@ def generate_captions_speech(image):
13
 
14
  caption_blip_large = itm.generate_caption(itm.blip_processor_large, itm.blip_model_large, image)
15
  print('generate_captions>>>'+caption_blip_large)
16
- return caption_blip_large,am.synthesize_speech(caption_blip_large)
 
17
 
18
 
19
  # Define la interfaz de usuario utilizando Gradio entradas y salidas
 
13
 
14
  caption_blip_large = itm.generate_caption(itm.blip_processor_large, itm.blip_model_large, image)
15
  print('generate_captions>>>'+caption_blip_large)
16
+ speech=amsynthesize_speech(caption_blip_large)
17
+ return caption_blip_large,gr.Audio.update(value=(16000, speech.cpu().numpy()))
18
 
19
 
20
  # Define la interfaz de usuario utilizando Gradio entradas y salidas