Files changed (1) hide show
  1. app.py +11 -11
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
- 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)
 
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)