Nepjune commited on
Commit
084403c
·
verified ·
1 Parent(s): 4231706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,6 +14,6 @@ def generate_caption(image):
14
 
15
  return generated_caption
16
 
17
- # Create a gradio interface with an image input and a textbox output
18
- demo = gr.Interface(fn=generate_caption, inputs=gr.Image(shape=(224, 224)), outputs=gr.Textbox(label="Generated caption"))
19
- demo.launch()
 
14
 
15
  return generated_caption
16
 
17
+ # Create a Gradio interface with an image input and a textbox output
18
+ demo = gr.Interface(fn=generate_caption, inputs=gr.Image(), outputs=gr.Textbox(label="Generated caption"))
19
+ demo.launch()