Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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
|