workflow: inference hardcoded endpoint improvements - #13710
Conversation
- add custom param ui - add image-text-to-video tag
|
Could we add a couple of Workflow demos to the |
| "image-to-text": "chat_completion", | ||
| "visual-question-answering": "chat_completion", | ||
| "document-question-answering": "chat_completion", |
There was a problem hiding this comment.
So for these other task types, should we automatically add the optional inputs? Like for vqa, we add an image, for dqa, we add a file input?
There was a problem hiding this comment.
if im understanding your Q correctly, we already do via TASK_SCHEMAS in node-library.ts. though image to text was missing the optional text prompt so ive added that in
There was a problem hiding this comment.
btw for dqa we use image not file because dqa routes through chat_completion, which only accepts types text and image_url :/
There was a problem hiding this comment.
rather annoying UX
| outputs: { id: string; label: string; type: PortType }[]; | ||
| } | ||
|
|
||
| export const TASK_SCHEMAS: Record<string, TaskSchema> = { |
🪼 branch checks and previews
Install Gradio from this PR pip install https://huggingface.co/buckets/gradio/pypi-previews/resolve/438c55ca3915ab19f6b1511a3277eb9e93f9e25e/gradio-6.22.0-py3-none-any.whlInstall Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@438c55ca3915ab19f6b1511a3277eb9e93f9e25e#subdirectory=client/python"Import Gradio JS Client from this PR via CDN import { Client } from "https://huggingface.co/buckets/gradio/npm-previews/resolve/438c55ca3915ab19f6b1511a3277eb9e93f9e25e/browser.js"; |
Description