mirror of
https://github.com/open-webui/open-webui
synced 2025-02-18 10:58:51 +00:00
fix
This commit is contained in:
parent
063e006446
commit
99764bfd29
@ -457,7 +457,17 @@ async def image_generations(
|
|||||||
if form_data.negative_prompt is not None:
|
if form_data.negative_prompt is not None:
|
||||||
data["negative_prompt"] = form_data.negative_prompt
|
data["negative_prompt"] = form_data.negative_prompt
|
||||||
|
|
||||||
form_data = ComfyUIGenerateImageForm(**data)
|
form_data = ComfyUIGenerateImageForm(
|
||||||
|
{
|
||||||
|
"workflow": ComfyUIWorkflow(
|
||||||
|
{
|
||||||
|
"workflow": app.state.config.COMFYUI_WORKFLOW,
|
||||||
|
"nodes": app.state.config.COMFYUI_WORKFLOW_NODES,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
**data,
|
||||||
|
}
|
||||||
|
)
|
||||||
res = await comfyui_generate_image(
|
res = await comfyui_generate_image(
|
||||||
app.state.config.MODEL,
|
app.state.config.MODEL,
|
||||||
form_data,
|
form_data,
|
||||||
|
Loading…
Reference in New Issue
Block a user