Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ description = "Gradio Demo for generating *Midjourney* like captions (describe f
|
|
29 |
|
30 |
examples = [
|
31 |
["Describe the following image:", "https://miro.medium.com/v2/resize:fit:0/1*sTXgMwDUW0pk-1yK4iHYFw.png", 64],
|
|
|
32 |
["Describe the following image:", "https://cdn.arstechnica.net/wp-content/uploads/2023/06/zoomout_2-1440x807.jpg", 64],
|
33 |
["Describe the following image:", "https://framerusercontent.com/images/inZdRVn7eafZNvaVre2iW1a538.png", 64],
|
34 |
["Describe the following image:", "https://hips.hearstapps.com/hmg-prod/images/cute-photos-of-cats-in-grass-1593184777.jpg", 64]
|
@@ -41,7 +42,7 @@ io = gr.Interface(fn=predict,
|
|
41 |
gr.Slider(label="Max tokens", value=64, max=128, min=16, step=8)
|
42 |
],
|
43 |
outputs=[
|
44 |
-
gr.Image(type='pil'),
|
45 |
gr.Textbox(label="IDEFICS Description")
|
46 |
],
|
47 |
title=title, description=description, examples=examples,
|
|
|
29 |
|
30 |
examples = [
|
31 |
["Describe the following image:", "https://miro.medium.com/v2/resize:fit:0/1*sTXgMwDUW0pk-1yK4iHYFw.png", 64],
|
32 |
+
["Describe the following image:", "https://miro.medium.com/v2/resize:fit:1400/0*6as5rHi0sgG4W2Tq.png", 64],
|
33 |
["Describe the following image:", "https://cdn.arstechnica.net/wp-content/uploads/2023/06/zoomout_2-1440x807.jpg", 64],
|
34 |
["Describe the following image:", "https://framerusercontent.com/images/inZdRVn7eafZNvaVre2iW1a538.png", 64],
|
35 |
["Describe the following image:", "https://hips.hearstapps.com/hmg-prod/images/cute-photos-of-cats-in-grass-1593184777.jpg", 64]
|
|
|
42 |
gr.Slider(label="Max tokens", value=64, max=128, min=16, step=8)
|
43 |
],
|
44 |
outputs=[
|
45 |
+
gr.Image(type='pil', label="Image"),
|
46 |
gr.Textbox(label="IDEFICS Description")
|
47 |
],
|
48 |
title=title, description=description, examples=examples,
|