Testing text2img command (will be replaced, only for tests); added exception handling, queue and database table with generated images
This commit is contained in:
14
bot/modules/api/objects/prompt_request.py
Normal file
14
bot/modules/api/objects/prompt_request.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dataclasses
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class Prompt:
|
||||
prompt: str
|
||||
negative_prompt: str = None
|
||||
steps: int = 20
|
||||
cfg_scale: int = 7
|
||||
width: int = 768
|
||||
height: int = 768
|
||||
restore_faces: bool = True
|
||||
sampler: str = "Euler a"
|
||||
creator: int = None
|
||||
Reference in New Issue
Block a user