Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -510,10 +510,62 @@ with gr.Blocks(
|
|
510 |
],
|
511 |
"text": "Why this image funny?",
|
512 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
513 |
],
|
514 |
],
|
515 |
inputs=[chat_input],
|
516 |
-
label="
|
517 |
)
|
518 |
|
519 |
gr.Markdown(tos_markdown)
|
|
|
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",
|
552 |
+
f"{cur_dir}/examples/realcase_multi2.png",
|
553 |
+
f"{cur_dir}/examples/realcase_multi3.png",
|
554 |
+
f"{cur_dir}/examples/realcase_multi4.png",
|
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",
|
569 |
)
|
570 |
|
571 |
gr.Markdown(tos_markdown)
|