-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[editor] HuggingFaceImage2TextTransformerPromptSchema
# [editor] HuggingFaceImage2TextTransformerPromptSchema Get the input schema implemented so the input renders. Need to add model_settings afterwards 
- Loading branch information
Ryan Holinshead
committed
Jan 10, 2024
1 parent
489aa28
commit 7d38044
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...g/editor/client/src/shared/prompt_schemas/HuggingFaceImage2TextTransformerPromptSchema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { PromptSchema } from "../../utils/promptUtils"; | ||
|
||
export const HuggingFaceImage2TextTransformerPromptSchema: PromptSchema = { | ||
input: { | ||
type: "object", | ||
required: ["data"], | ||
properties: { | ||
attachments: { | ||
type: "array", | ||
items: { | ||
type: "attachment", | ||
required: ["data"], | ||
mime_types: ["image/png"], | ||
properties: { | ||
data: { | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
max_items: 1, | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters