Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,12 @@ def predict(prompt, image_url, max_length):
|
|
25 |
title = "Midjourney-like Image Captioning with IDEFICS"
|
26 |
description = "Gradio Demo for generating Midjourney like captions (describe functionality) with IDEFICS"
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
29 |
io = gr.Interface(fn=image_caption,
|
30 |
#inputs=gr.inputs.Image(type='pil'),
|
31 |
inputs=[
|
|
|
25 |
title = "Midjourney-like Image Captioning with IDEFICS"
|
26 |
description = "Gradio Demo for generating Midjourney like captions (describe functionality) with IDEFICS"
|
27 |
|
28 |
+
examples = [
|
29 |
+
["Describe the following image:", "https://cdn.arstechnica.net/wp-content/uploads/2023/06/zoomout_2-1440x807.jpg", 64],
|
30 |
+
["Describe the following image:", "https://framerusercontent.com/images/inZdRVn7eafZNvaVre2iW1a538.png", 64],
|
31 |
+
["Describe the following image:", "https://hips.hearstapps.com/hmg-prod/images/cute-photos-of-cats-in-grass-1593184777.jpg", 64]
|
32 |
+
|
33 |
+
]
|
34 |
io = gr.Interface(fn=image_caption,
|
35 |
#inputs=gr.inputs.Image(type='pil'),
|
36 |
inputs=[
|