Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -509,43 +509,57 @@ with gr.Blocks(
|
|
509 |
f"{cur_dir}/examples/172197131626056_P7966202.png",
|
510 |
],
|
511 |
"text": "Why this image funny?",
|
512 |
-
}
|
|
|
|
|
513 |
{
|
514 |
"files": [
|
515 |
f"{cur_dir}/examples/realcase_doc.png",
|
516 |
],
|
517 |
"text": "Read text in the image",
|
518 |
-
}
|
|
|
|
|
519 |
{
|
520 |
"files": [
|
521 |
f"{cur_dir}/examples/realcase_weather.jpg",
|
522 |
],
|
523 |
"text": "List the weather for Monday to Friday",
|
524 |
-
}
|
|
|
|
|
525 |
{
|
526 |
"files": [
|
527 |
f"{cur_dir}/examples/realcase_knowledge.jpg",
|
528 |
],
|
529 |
"text": "Answer the following question based on the provided image: What country do these planes belong to?",
|
530 |
-
}
|
|
|
|
|
531 |
{
|
532 |
"files": [
|
533 |
f"{cur_dir}/examples/realcase_math.jpg",
|
534 |
],
|
535 |
"text": "Find the measure of angle 3.",
|
536 |
-
}
|
|
|
|
|
537 |
{
|
538 |
"files": [
|
539 |
f"{cur_dir}/examples/realcase_interact.jpg",
|
540 |
],
|
541 |
"text": "Please perfectly describe this cartoon illustration in as much detail as possible",
|
542 |
-
}
|
|
|
|
|
543 |
{
|
544 |
"files": [
|
545 |
f"{cur_dir}/examples/realcase_perfer.jpg",
|
546 |
],
|
547 |
"text": "This is an image of a room. It could either be a real image captured in the room or a rendered image from a 3D scene reconstruction technique that is trained using real images of the room. A rendered image usually contains some visible artifacts (eg. blurred regions due to under-reconstructed areas) that do not faithfully represent the actual scene. You need to decide if its a real image or a rendered image by giving each image a photorealism score between 1 and 5.",
|
548 |
-
}
|
|
|
|
|
549 |
{
|
550 |
"files": [
|
551 |
f"{cur_dir}/examples/realcase_multi1.png",
|
@@ -555,14 +569,16 @@ with gr.Blocks(
|
|
555 |
f"{cur_dir}/examples/realcase_multi5.png",
|
556 |
],
|
557 |
"text": "Based on the five species in the images, draw a food chain. Explain the role of each species in the food chain.",
|
558 |
-
}
|
|
|
|
|
559 |
{
|
560 |
"files": [
|
561 |
f"{cur_dir}/examples/realcase_video.mp4",
|
562 |
],
|
563 |
"text": "Please describe the video in detail.",
|
564 |
},
|
565 |
-
]
|
566 |
],
|
567 |
inputs=[chat_input],
|
568 |
label="RealWorld Cases",
|
|
|
509 |
f"{cur_dir}/examples/172197131626056_P7966202.png",
|
510 |
],
|
511 |
"text": "Why this image funny?",
|
512 |
+
}
|
513 |
+
],
|
514 |
+
[
|
515 |
{
|
516 |
"files": [
|
517 |
f"{cur_dir}/examples/realcase_doc.png",
|
518 |
],
|
519 |
"text": "Read text in the image",
|
520 |
+
}
|
521 |
+
],
|
522 |
+
[
|
523 |
{
|
524 |
"files": [
|
525 |
f"{cur_dir}/examples/realcase_weather.jpg",
|
526 |
],
|
527 |
"text": "List the weather for Monday to Friday",
|
528 |
+
}
|
529 |
+
],
|
530 |
+
[
|
531 |
{
|
532 |
"files": [
|
533 |
f"{cur_dir}/examples/realcase_knowledge.jpg",
|
534 |
],
|
535 |
"text": "Answer the following question based on the provided image: What country do these planes belong to?",
|
536 |
+
}
|
537 |
+
],
|
538 |
+
[
|
539 |
{
|
540 |
"files": [
|
541 |
f"{cur_dir}/examples/realcase_math.jpg",
|
542 |
],
|
543 |
"text": "Find the measure of angle 3.",
|
544 |
+
}
|
545 |
+
],
|
546 |
+
[
|
547 |
{
|
548 |
"files": [
|
549 |
f"{cur_dir}/examples/realcase_interact.jpg",
|
550 |
],
|
551 |
"text": "Please perfectly describe this cartoon illustration in as much detail as possible",
|
552 |
+
}
|
553 |
+
],
|
554 |
+
[
|
555 |
{
|
556 |
"files": [
|
557 |
f"{cur_dir}/examples/realcase_perfer.jpg",
|
558 |
],
|
559 |
"text": "This is an image of a room. It could either be a real image captured in the room or a rendered image from a 3D scene reconstruction technique that is trained using real images of the room. A rendered image usually contains some visible artifacts (eg. blurred regions due to under-reconstructed areas) that do not faithfully represent the actual scene. You need to decide if its a real image or a rendered image by giving each image a photorealism score between 1 and 5.",
|
560 |
+
}
|
561 |
+
],
|
562 |
+
[
|
563 |
{
|
564 |
"files": [
|
565 |
f"{cur_dir}/examples/realcase_multi1.png",
|
|
|
569 |
f"{cur_dir}/examples/realcase_multi5.png",
|
570 |
],
|
571 |
"text": "Based on the five species in the images, draw a food chain. Explain the role of each species in the food chain.",
|
572 |
+
}
|
573 |
+
],
|
574 |
+
[
|
575 |
{
|
576 |
"files": [
|
577 |
f"{cur_dir}/examples/realcase_video.mp4",
|
578 |
],
|
579 |
"text": "Please describe the video in detail.",
|
580 |
},
|
581 |
+
]
|
582 |
],
|
583 |
inputs=[chat_input],
|
584 |
label="RealWorld Cases",
|