marconilab commited on
Commit
e80ac2f
·
verified ·
1 Parent(s): 7ca9b74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -23,5 +23,12 @@ def predict(image):
23
  return generated_caption
24
 
25
 
26
- interface = gr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs="text")
 
 
 
 
 
 
 
27
  interface.launch()
 
23
  return generated_caption
24
 
25
 
26
+ # interface = gr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs="text")
27
+ interface = gr.Interface(
28
+ fn=predict,
29
+ inputs=gr.Image(type="pil"),
30
+ outputs="text",
31
+ title="BLIP Image Caption Generator",
32
+ description="Upload an image or select a sample to generate a descriptive caption." # Add description here
33
+ )
34
  interface.launch()