Spaces:
Runtime error
Runtime error
Commit ·
b56b22d
1
Parent(s): 4501c68
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ def captioner(image):
|
|
| 69 |
return result[0]['generated_text']
|
| 70 |
|
| 71 |
gr.close_all()
|
| 72 |
-
demo = gr.Interface(fn=
|
| 73 |
inputs=[gr.Image(label="Upload image", type="pil")],
|
| 74 |
outputs=[gr.Textbox(label="Caption")],
|
| 75 |
title="Image Captioning with BLIP",
|
|
|
|
| 69 |
return result[0]['generated_text']
|
| 70 |
|
| 71 |
gr.close_all()
|
| 72 |
+
demo = gr.Interface(fn=get_completion,
|
| 73 |
inputs=[gr.Image(label="Upload image", type="pil")],
|
| 74 |
outputs=[gr.Textbox(label="Caption")],
|
| 75 |
title="Image Captioning with BLIP",
|