Spaces:
Runtime error
Runtime error
VictorSanh
commited on
Commit
•
f10b974
1
Parent(s):
18b7bba
Update app_dialogue.py
Browse files- app_dialogue.py +14 -7
app_dialogue.py
CHANGED
@@ -264,9 +264,7 @@ def model_generation(
|
|
264 |
|
265 |
textbox = gr.Textbox(
|
266 |
show_label=False,
|
267 |
-
value=
|
268 |
-
"<fake_token_around_image><image:https://www.boredpanda.com/blog/wp-content/uploads/2014/02/funny-wet-cats-coverimage.jpg><fake_token_around_image>How about this cat?"
|
269 |
-
),
|
270 |
placeholder=(
|
271 |
"To input images, use the following syntax:"
|
272 |
" `<fake_token_around_image><image:URL_IMAGE><fake_token_around_image>textexttext`"
|
@@ -335,18 +333,27 @@ with gr.Blocks(title="IDEFICS", theme=gr.themes.Base()) as demo:
|
|
335 |
value=[
|
336 |
[
|
337 |
(
|
338 |
-
"What's unusual about this
|
|
|
339 |
),
|
340 |
(
|
341 |
-
"The unusual aspect of this image is
|
|
|
|
|
|
|
342 |
),
|
343 |
],
|
344 |
[
|
345 |
(
|
346 |
-
"What
|
|
|
347 |
),
|
348 |
(
|
349 |
-
"The cat is white
|
|
|
|
|
|
|
|
|
350 |
),
|
351 |
],
|
352 |
],
|
|
|
264 |
|
265 |
textbox = gr.Textbox(
|
266 |
show_label=False,
|
267 |
+
value="What color are the cat's eyes?",
|
|
|
|
|
268 |
placeholder=(
|
269 |
"To input images, use the following syntax:"
|
270 |
" `<fake_token_around_image><image:URL_IMAGE><fake_token_around_image>textexttext`"
|
|
|
333 |
value=[
|
334 |
[
|
335 |
(
|
336 |
+
"What's unusual about this"
|
337 |
+
" image?<fake_token_around_image><image:https://i.redd.it/9nkcvbi1pp9y.jpg><fake_token_around_image>"
|
338 |
),
|
339 |
(
|
340 |
+
"The unusual aspect of this image is that there is a cat lying on a bed with an orange on"
|
341 |
+
" its stomach. The cat is white and fluffy, and it appears to be sleeping or resting"
|
342 |
+
" comfortably with the orange on its belly. This is an uncommon sight, as cats typically"
|
343 |
+
" do not interact with fruits in such a manner."
|
344 |
),
|
345 |
],
|
346 |
[
|
347 |
(
|
348 |
+
"<fake_token_around_image><image:https://www.boredpanda.com/blog/wp-content/uploads/2014/02/funny-wet-cats-coverimage.jpg><fake_token_around_image>What"
|
349 |
+
" about this cat? Why do people find it funny?"
|
350 |
),
|
351 |
(
|
352 |
+
"The cat in the image is a gray and white long-haired cat with a surprised expression on"
|
353 |
+
" its face. The cat's eyes are wide open, and it appears to be looking directly at the"
|
354 |
+
" camera. The cat's mouth is also open, which adds to its surprised and funny appearance."
|
355 |
+
" The combination of the cat's surprised expression and its wet fur, possibly from being"
|
356 |
+
" in the shower or bath, makes it an amusing and entertaining sight for many people."
|
357 |
),
|
358 |
],
|
359 |
],
|