irotem98 commited on
Commit
2907e22
Β·
verified Β·
1 Parent(s): 67054df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -45,14 +45,13 @@ def generate_caption_with_default(image):
45
 
46
  return caption
47
 
48
- # Create Gradio interface
49
  interface = gr.Interface(
50
  fn=generate_caption_with_default,
51
- inputs=gr.inputs.Image(type="pil", label="Upload an Image"),
52
  outputs="text",
53
  title="Image Caption Generator",
54
  description=f"The default question is: '{default_question}'. Upload an image to generate a description."
55
  )
56
 
57
  # Launch the interface
58
- interface.launch()
 
45
 
46
  return caption
47
 
 
48
  interface = gr.Interface(
49
  fn=generate_caption_with_default,
50
+ inputs=gr.Image(type="pil", label="Upload an Image"), # Updated input
51
  outputs="text",
52
  title="Image Caption Generator",
53
  description=f"The default question is: '{default_question}'. Upload an image to generate a description."
54
  )
55
 
56
  # Launch the interface
57
+ interface.launch()