Spaces:
Runtime error
Runtime error
HugoLaurencon
commited on
Update app_dialogue.py
Browse files- app_dialogue.py +37 -31
app_dialogue.py
CHANGED
@@ -63,6 +63,12 @@ SYSTEM_PROMPT = [
|
|
63 |
]
|
64 |
examples_path = os.path.dirname(__file__)
|
65 |
EXAMPLES = [
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
[
|
67 |
{
|
68 |
"text": "What's in the image?",
|
@@ -71,52 +77,50 @@ EXAMPLES = [
|
|
71 |
],
|
72 |
[
|
73 |
{
|
74 |
-
"text": "
|
75 |
-
"files": [f"{examples_path}/example_images/
|
76 |
}
|
77 |
],
|
78 |
[
|
79 |
{
|
80 |
-
"text": "
|
81 |
-
"files": [
|
82 |
-
f"{examples_path}/example_images/kittens-cats-pet-cute-preview.jpg"
|
83 |
-
],
|
84 |
}
|
85 |
],
|
86 |
[
|
87 |
{
|
88 |
-
"text": "
|
89 |
-
"files": [f"{examples_path}/example_images/
|
90 |
}
|
91 |
],
|
92 |
[
|
93 |
{
|
94 |
-
"text": "
|
95 |
-
"files": [f"{examples_path}/example_images/
|
96 |
}
|
97 |
],
|
98 |
[
|
99 |
{
|
100 |
-
"text": "
|
101 |
-
"files": [f"{examples_path}/example_images/
|
102 |
}
|
103 |
],
|
104 |
[
|
105 |
{
|
106 |
-
"text": "
|
107 |
-
"files": [f"{examples_path}/example_images/
|
108 |
}
|
109 |
],
|
110 |
[
|
111 |
{
|
112 |
-
"text": "
|
113 |
-
"files": [f"{examples_path}/example_images/
|
114 |
}
|
115 |
],
|
116 |
[
|
117 |
{
|
118 |
-
"text": "
|
119 |
-
"files": [f"{examples_path}/example_images/
|
120 |
}
|
121 |
],
|
122 |
[
|
@@ -127,38 +131,40 @@ EXAMPLES = [
|
|
127 |
],
|
128 |
[
|
129 |
{
|
130 |
-
"text": "Why is
|
131 |
-
"files": [
|
|
|
|
|
132 |
}
|
133 |
],
|
134 |
[
|
135 |
{
|
136 |
-
"text": "
|
137 |
-
"files": [f"{examples_path}/example_images/
|
138 |
}
|
139 |
-
],
|
140 |
[
|
141 |
{
|
142 |
-
"text": "
|
143 |
-
"files": [f"{examples_path}/example_images/
|
144 |
}
|
145 |
],
|
146 |
[
|
147 |
{
|
148 |
-
"text": "
|
149 |
-
"files": [f"{examples_path}/example_images/
|
150 |
}
|
151 |
],
|
152 |
[
|
153 |
{
|
154 |
-
"text": "
|
155 |
-
"files": [f"{examples_path}/example_images/
|
156 |
}
|
157 |
],
|
158 |
[
|
159 |
{
|
160 |
-
"text": "
|
161 |
-
"files": [f"{examples_path}/example_images/
|
162 |
}
|
163 |
],
|
164 |
]
|
|
|
63 |
]
|
64 |
examples_path = os.path.dirname(__file__)
|
65 |
EXAMPLES = [
|
66 |
+
[
|
67 |
+
{
|
68 |
+
"text": "For 2024, the interest expense is twice what it was in 2014, and the long-term debt is 10% higher than its 2015 level. Can you calculate the combined total of the interest and long-term debt for 2024?",
|
69 |
+
"files": [f"{examples_path}/example_images/mmmu_example_2.png"],
|
70 |
+
}
|
71 |
+
],
|
72 |
[
|
73 |
{
|
74 |
"text": "What's in the image?",
|
|
|
77 |
],
|
78 |
[
|
79 |
{
|
80 |
+
"text": "Describe the image",
|
81 |
+
"files": [f"{examples_path}/example_images/baguettes_guarding_paris.png"],
|
82 |
}
|
83 |
],
|
84 |
[
|
85 |
{
|
86 |
+
"text": "Read what's written on the paper",
|
87 |
+
"files": [f"{examples_path}/example_images/paper_with_text.png"],
|
|
|
|
|
88 |
}
|
89 |
],
|
90 |
[
|
91 |
{
|
92 |
+
"text": "The respective main characters of these two movies meet in real life. Imagine their discussion. It should be sassy, and the beginning of a mysterious adventure.",
|
93 |
+
"files": [f"{examples_path}/example_images/barbie.jpeg", f"{examples_path}/example_images/oppenheimer.jpeg"],
|
94 |
}
|
95 |
],
|
96 |
[
|
97 |
{
|
98 |
+
"text": "Can you explain this meme?",
|
99 |
+
"files": [f"{examples_path}/example_images/running_girl_meme.webp"],
|
100 |
}
|
101 |
],
|
102 |
[
|
103 |
{
|
104 |
+
"text": "What happens to fish if pelicans increase?",
|
105 |
+
"files": [f"{examples_path}/example_images/ai2d_example_2.jpeg"],
|
106 |
}
|
107 |
],
|
108 |
[
|
109 |
{
|
110 |
+
"text": "Give an art-critic description of this well known painting",
|
111 |
+
"files": [f"{examples_path}/example_images/Van-Gogh-Starry-Night.jpg"],
|
112 |
}
|
113 |
],
|
114 |
[
|
115 |
{
|
116 |
+
"text": "Chase wants to buy 4 kilograms of oval beads and 5 kilograms of star-shaped beads. How much will he spend?",
|
117 |
+
"files": [f"{examples_path}/example_images/mmmu_example.jpeg"],
|
118 |
}
|
119 |
],
|
120 |
[
|
121 |
{
|
122 |
+
"text": "Write an online ad for that product.",
|
123 |
+
"files": [f"{examples_path}/example_images/shampoo.jpg"],
|
124 |
}
|
125 |
],
|
126 |
[
|
|
|
131 |
],
|
132 |
[
|
133 |
{
|
134 |
+
"text": "Why is this image cute?",
|
135 |
+
"files": [
|
136 |
+
f"{examples_path}/example_images/kittens-cats-pet-cute-preview.jpg"
|
137 |
+
],
|
138 |
}
|
139 |
],
|
140 |
[
|
141 |
{
|
142 |
+
"text": "What is formed by the deposition of either the weathered remains of other rocks?",
|
143 |
+
"files": [f"{examples_path}/example_images/ai2d_example.jpeg"],
|
144 |
}
|
145 |
+
],
|
146 |
[
|
147 |
{
|
148 |
+
"text": "What's funny about this image?",
|
149 |
+
"files": [f"{examples_path}/example_images/pope_doudoune.webp"],
|
150 |
}
|
151 |
],
|
152 |
[
|
153 |
{
|
154 |
+
"text": "Can this happen in real life?",
|
155 |
+
"files": [f"{examples_path}/example_images/elephant_spider_web.webp"],
|
156 |
}
|
157 |
],
|
158 |
[
|
159 |
{
|
160 |
+
"text": "What's unusual about this image?",
|
161 |
+
"files": [f"{examples_path}/example_images/dragons_playing.png"],
|
162 |
}
|
163 |
],
|
164 |
[
|
165 |
{
|
166 |
+
"text": "Why is that image comical?",
|
167 |
+
"files": [f"{examples_path}/example_images/eye_glasses.jpeg"],
|
168 |
}
|
169 |
],
|
170 |
]
|