Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,9 +49,10 @@ def generate_caption_tts(image):
|
|
| 49 |
interface = gr.Interface(
|
| 50 |
fn=generate_caption_tts,
|
| 51 |
inputs=gr.Image(type="numpy"),
|
| 52 |
-
outputs=[gr.Textbox(label="Generated Caption"), gr.Audio(type="
|
| 53 |
-
title="
|
| 54 |
-
description="Upload an image
|
| 55 |
)
|
| 56 |
|
|
|
|
| 57 |
interface.launch()
|
|
|
|
| 49 |
interface = gr.Interface(
|
| 50 |
fn=generate_caption_tts,
|
| 51 |
inputs=gr.Image(type="numpy"),
|
| 52 |
+
outputs=[gr.Textbox(label="Generated Caption"), gr.Audio(type="filepath", label="TTS Audio")],
|
| 53 |
+
title="Image Captioning for Visually Impaired",
|
| 54 |
+
description="Upload an image, get a caption and audio description."
|
| 55 |
)
|
| 56 |
|
| 57 |
+
|
| 58 |
interface.launch()
|