Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ text_to_audio_model = pipeline("text-to-speech")
|
|
17 |
def image_to_audio(input_image):
|
18 |
# Convertir la imagen a texto
|
19 |
text_output = image_to_text_model(input_image)[0]['label']
|
20 |
-
|
21 |
# Generar audio a partir del texto
|
22 |
audio_output = text_to_audio_model(text_output)[0]['audio']
|
23 |
print('audio_output is :'+audio_output)
|
|
|
17 |
def image_to_audio(input_image):
|
18 |
# Convertir la imagen a texto
|
19 |
text_output = image_to_text_model(input_image)[0]['label']
|
20 |
+
print('text_output is :'+text_output)
|
21 |
# Generar audio a partir del texto
|
22 |
audio_output = text_to_audio_model(text_output)[0]['audio']
|
23 |
print('audio_output is :'+audio_output)
|