Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ 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 |
-
speech=
|
17 |
return caption_blip_large,gr.Audio.update(value=(16000, speech.cpu().numpy()))
|
18 |
|
19 |
|
|
|
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=am.synthesize_speech(caption_blip_large)
|
17 |
return caption_blip_large,gr.Audio.update(value=(16000, speech.cpu().numpy()))
|
18 |
|
19 |
|