-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
script({ | ||
title: "Describe objects in each image", | ||
model: "gpt-3.5-turbo", | ||
maxTokens: 4000, | ||
system: [], | ||
tests: { | ||
files: "src/robots.jpg", | ||
keywords: "robot", | ||
}, | ||
}) | ||
|
||
for (const file of env.files) { | ||
const res = await runPrompt( | ||
(_) => { | ||
_.$`Return the list of objects in the images.` | ||
_.defImages(file, { detail: "low" }) | ||
}, | ||
{ | ||
model: "gpt-4-turbo-v", | ||
maxTokens: 4000, | ||
} | ||
) | ||
def("OBJECTS", res.text) | ||
} | ||
|
||
$`Summarize the objects in images.` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.