Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const engineInstance = initEngine({
pictonizerConfiguration,
});

const prompt = "animals";
const maxSuggestions = 30;
const prompt = "good morning";
const maxSuggestions = 5;
const symbolSet = "arasaac";
const language = "eng";

Expand All @@ -43,8 +43,7 @@ engineInstance
.then((suggestions) =>
console.log(
"\nSuggestions -----------------------------------------------\n",
suggestions,
"length: "+suggestions.length
suggestions
)
);

Expand Down
2 changes: 2 additions & 0 deletions src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type Suggestion = {
id: string;
symbolSet: string;
url: string;
fitzgerald: string;
}[]
| AIImage[];
};
Expand Down Expand Up @@ -141,6 +142,7 @@ async function fetchPictogramsURLs({
id: label.id.toString(),
symbolSet: label.picto.symbolset_id.toString(),
url: label.picto.image_url,
fitzgerald: label.picto.part_of_speech,
})),
},
};
Expand Down