File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
references/nextjs-realtime/src/trigger Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,26 @@ export const handleUpload = schemaTask({
17
17
const results = await runFalModel . batchTriggerAndWait ( [
18
18
{
19
19
payload : {
20
- model : "fal-ai/image-preprocessors/canny " ,
20
+ model : "fal-ai/image-preprocessors/lineart " ,
21
21
url : file . url ,
22
- input : {
23
- low_threshold : 100 ,
24
- high_threshold : 200 ,
25
- } ,
22
+ input : { } ,
26
23
} ,
27
24
options : {
28
25
tags : ctx . run . tags ,
29
26
} ,
30
27
} ,
31
28
{
32
29
payload : {
33
- model : "fal-ai/aura-sr " ,
30
+ model : "fal-ai/omni-zero " ,
34
31
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
+ } ,
36
40
} ,
37
41
options : { tags : ctx . run . tags } ,
38
42
} ,
You can’t perform that action at this time.
0 commit comments