Skip to content

Commit b68d1e0

Browse files
samejrericallam
authored andcommitted
Improved the generated example styles
1 parent f2774fa commit b68d1e0

File tree

1 file changed

+11
-7
lines changed
  • references/nextjs-realtime/src/trigger

1 file changed

+11
-7
lines changed

references/nextjs-realtime/src/trigger/images.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,26 @@ export const handleUpload = schemaTask({
1717
const results = await runFalModel.batchTriggerAndWait([
1818
{
1919
payload: {
20-
model: "fal-ai/image-preprocessors/canny",
20+
model: "fal-ai/image-preprocessors/lineart",
2121
url: file.url,
22-
input: {
23-
low_threshold: 100,
24-
high_threshold: 200,
25-
},
22+
input: {},
2623
},
2724
options: {
2825
tags: ctx.run.tags,
2926
},
3027
},
3128
{
3229
payload: {
33-
model: "fal-ai/aura-sr",
30+
model: "fal-ai/omni-zero",
3431
url: file.url,
35-
input: {},
32+
input: {
33+
prompt: "Turn the image into a cartoon",
34+
image_url: file.url,
35+
composition_image_url: file.url,
36+
style_image_url:
37+
"https://storage.googleapis.com/falserverless/model_tests/omni_zero/style.jpg",
38+
identity_image_url: file.url,
39+
},
3640
},
3741
options: { tags: ctx.run.tags },
3842
},

0 commit comments

Comments
 (0)