mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-20 21:23:17 +00:00
Update generate_image.py
This commit is contained in:
parent
33a18a7a95
commit
1a33b77ba1
@ -69,10 +69,13 @@ def build_image(prompt, negative_prompt, width, height, processor:APScript, clie
|
|||||||
elif processor.personality.config.active_tti_service=="comfyui":
|
elif processor.personality.config.active_tti_service=="comfyui":
|
||||||
if not processor.personality.app.tti:
|
if not processor.personality.app.tti:
|
||||||
from lollms.services.comfyui.lollms_comfyui import LollmsComfyUI
|
from lollms.services.comfyui.lollms_comfyui import LollmsComfyUI
|
||||||
processor.step_start("Loading dalle service")
|
processor.step_start("Loading comfyui service")
|
||||||
processor.personality.app.tti = LollmsComfyUI(processor.personality.app, comfyui_base_url=processor.personality)
|
processor.personality.app.tti = LollmsComfyUI(
|
||||||
|
processor.personality.app,
|
||||||
|
comfyui_base_url=processor.config.comfyui_base_url
|
||||||
|
)
|
||||||
processor.personality.app.dalle = processor.personality.app.tti
|
processor.personality.app.dalle = processor.personality.app.tti
|
||||||
processor.step_end("Loading dalle service")
|
processor.step_end("Loading comfyui service")
|
||||||
processor.step_start("Painting")
|
processor.step_start("Painting")
|
||||||
file = processor.personality.app.tti.paint(
|
file = processor.personality.app.tti.paint(
|
||||||
prompt,
|
prompt,
|
||||||
|
Loading…
Reference in New Issue
Block a user