Spaces:
Runtime error
Runtime error
test update app.py
#1
by
Natthathida
- opened
app.py
CHANGED
@@ -28,14 +28,14 @@ def generate_caption(image):
|
|
28 |
return generated_caption, audio_path
|
29 |
|
30 |
# Create a Gradio interface with an image input, a textbox output, a button, and an audio player
|
31 |
-
demo = gr.Interface(
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
)
|
41 |
-
demo.launch(share=True)
|
|
|
28 |
return generated_caption, audio_path
|
29 |
|
30 |
# Create a Gradio interface with an image input, a textbox output, a button, and an audio player
|
31 |
+
# demo = gr.Interface(
|
32 |
+
# fn=generate_caption,
|
33 |
+
# inputs=gr.Image(),
|
34 |
+
# outputs=[
|
35 |
+
# gr.Textbox(label="Generated caption"),
|
36 |
+
# gr.Button("Convert to Audio"),
|
37 |
+
# gr.Audio(type="filepath", label="Generated Audio")
|
38 |
+
# ],
|
39 |
+
# live=True
|
40 |
+
# )
|
41 |
+
# demo.launch(share=True)
|