dlaima commited on
Commit
e87493c
·
verified ·
1 Parent(s): 75fd3f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -23,12 +23,11 @@ def generate_caption(image):
23
  return f"Error: {response.status_code} - {response.text}"
24
 
25
 
26
-
27
  # Gradio interface
28
 
29
  demo = gr.Interface(
30
  fn=generate_caption,
31
- inputs=gr.inputs.Image(type="file", label="Upload Image"),
32
  outputs=gr.outputs.Textbox(label="Generated Caption"),
33
  examples=[image1, image2, image3],
34
  title="Image Captioning App",
 
23
  return f"Error: {response.status_code} - {response.text}"
24
 
25
 
 
26
  # Gradio interface
27
 
28
  demo = gr.Interface(
29
  fn=generate_caption,
30
+ inputs=gr.Image(type="file", label="Upload Image"),
31
  outputs=gr.outputs.Textbox(label="Generated Caption"),
32
  examples=[image1, image2, image3],
33
  title="Image Captioning App",