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

Update app.py

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