This commit is contained in:
parent
32777cca5c
commit
e72ffd6d8b
@ -578,7 +578,7 @@ class AsyncImagine:
|
|||||||
|
|
||||||
async def sdprem(self, prompt: str, negative: str = None, priority: str = None, steps: str = None,
|
async def sdprem(self, prompt: str, negative: str = None, priority: str = None, steps: str = None,
|
||||||
high_res_results: str = None, style: Style = Style.IMAGINE_V1, seed: str = None,
|
high_res_results: str = None, style: Style = Style.IMAGINE_V1, seed: str = None,
|
||||||
ratio: Ratio = Ratio.RATIO_1X1, cfg: float = 9.5) -> bytes | None:
|
ratio: Ratio = Ratio.RATIO_1X1, cfg: float = 9.5) -> bytes:
|
||||||
"""Generates AI Art."""
|
"""Generates AI Art."""
|
||||||
try:
|
try:
|
||||||
validated_cfg = validate_cfg(cfg)
|
validated_cfg = validate_cfg(cfg)
|
||||||
@ -615,7 +615,7 @@ class AsyncImagine:
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
async def upscale(self, image: bytes) -> bytes | None:
|
async def upscale(self, image: bytes) -> bytes:
|
||||||
"""Upscales the image."""
|
"""Upscales the image."""
|
||||||
try:
|
try:
|
||||||
async with self.session.post(
|
async with self.session.post(
|
||||||
|
Loading…
Reference in New Issue
Block a user