Spaces:
Sleeping
Sleeping
wuyiqunLu
commited on
feat: update example image and prompt (#40)
Browse files<img width="957" alt="image"
src="https://github.com/landing-ai/vision-agent-ui/assets/132986242/a7e7e902-4d3c-496c-97f1-6f93376a0d39">
<img width="1222" alt="image"
src="https://github.com/landing-ai/vision-agent-ui/assets/132986242/8aaf6589-d5e2-4525-a226-850883784f95">
<img width="900" alt="image"
src="https://github.com/landing-ai/vision-agent-ui/assets/132986242/b3420039-74fc-4a1d-9821-9dc9f318c83c">
- app/chat/page.tsx +10 -8
app/chat/page.tsx
CHANGED
|
@@ -17,20 +17,22 @@ import Link from 'next/link';
|
|
| 17 |
import { Button } from '@/components/ui/Button';
|
| 18 |
import Img from '@/components/ui/Img';
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
const exampleMessages = [
|
| 21 |
{
|
| 22 |
-
heading:
|
| 23 |
-
subheading:
|
| 24 |
-
url:
|
| 25 |
initMessages: [
|
| 26 |
{
|
| 27 |
role: 'user',
|
| 28 |
content:
|
| 29 |
-
|
| 30 |
-
'\n\n' +
|
| 31 |
-
generateInputImageMarkdown(
|
| 32 |
-
'https://landing-lens-support.s3.us-east-2.amazonaws.com/vision-agent-examples/cereal-example.jpg',
|
| 33 |
-
),
|
| 34 |
id: 'fake-id-1',
|
| 35 |
},
|
| 36 |
],
|
|
|
|
| 17 |
import { Button } from '@/components/ui/Button';
|
| 18 |
import Img from '@/components/ui/Img';
|
| 19 |
|
| 20 |
+
// const EXAMPLE_URL = 'https://landing-lens-support.s3.us-east-2.amazonaws.com/vision-agent-examples/cereal-example.jpg';
|
| 21 |
+
const EXAMPLE_URL = 'https://vision-agent-dev.s3.us-east-2.amazonaws.com/examples/flower.png';
|
| 22 |
+
const EXAMPLE_HEADER = 'Counting and find';
|
| 23 |
+
const EXAMPLE_SUBHEADER = 'number of flowers, area of largest and smallest flower';
|
| 24 |
+
const EXAMPLE_PROMPT = 'Count the number of flowers and find the area of the largest and smallest flower';
|
| 25 |
+
|
| 26 |
const exampleMessages = [
|
| 27 |
{
|
| 28 |
+
heading: EXAMPLE_HEADER,
|
| 29 |
+
subheading: EXAMPLE_SUBHEADER,
|
| 30 |
+
url: EXAMPLE_URL,
|
| 31 |
initMessages: [
|
| 32 |
{
|
| 33 |
role: 'user',
|
| 34 |
content:
|
| 35 |
+
EXAMPLE_PROMPT + '\n\n' + generateInputImageMarkdown(EXAMPLE_URL),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
id: 'fake-id-1',
|
| 37 |
},
|
| 38 |
],
|