Update app.py
Browse files
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()
|