This commit is contained in:
parent
421acb876c
commit
54ef8641fc
@ -33,6 +33,7 @@ from enum import Enum
|
||||
import uuid
|
||||
import subprocess
|
||||
|
||||
|
||||
class Style(Enum):
|
||||
"""
|
||||
Enumeration class for different styles. Each style has three attributes:
|
||||
@ -776,7 +777,9 @@ def run():
|
||||
else:
|
||||
prompt += arg + " "
|
||||
|
||||
async def generate_image(image_prompt, style_value, ratio_value, negative):
|
||||
async def generate_image(
|
||||
image_prompt, style_value, ratio_value, negative
|
||||
):
|
||||
imagine = AsyncImagine()
|
||||
filename = str(uuid.uuid4()) + ".png"
|
||||
try:
|
||||
@ -867,5 +870,6 @@ Help Message:
|
||||
print("Restarting bot due to {e}")
|
||||
return 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(run())
|
||||
|
Loading…
Reference in New Issue
Block a user