Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def text_to_audio_file(text):
|
|
| 43 |
# Gradio interface: Caption + Audio
|
| 44 |
# -------------------------------
|
| 45 |
def generate_caption_tts(image):
|
| 46 |
-
caption =
|
| 47 |
audio_file = text_to_audio_file(caption)
|
| 48 |
return caption, audio_file # return file path, not BytesIO
|
| 49 |
|
|
|
|
| 43 |
# Gradio interface: Caption + Audio
|
| 44 |
# -------------------------------
|
| 45 |
def generate_caption_tts(image):
|
| 46 |
+
caption = generate_caption_tts(model, processor, image)
|
| 47 |
audio_file = text_to_audio_file(caption)
|
| 48 |
return caption, audio_file # return file path, not BytesIO
|
| 49 |
|