Adding feature parity for some things for comfyUI

Added option to turn off emoji's, that break some stuff on ComfyUI
This commit is contained in:
AIrjen
2023-08-18 15:57:49 +02:00
parent 9dafdba0c3
commit 0d4fd185a9
5 changed files with 166 additions and 13 deletions
+4 -2
View File
@@ -38,13 +38,15 @@ def one_button_prompt_api(_: gr.Blocks, app: FastAPI):
gender: str = Body('all',title='gender'),
subtypeobject: str = Body('all',title='subtypeobject'),
subtypehumanoid: str = Body('all', title='subtypehumanoid'),
subtypeconcept: str = Body('all', title='subtypeconcept')
subtypeconcept: str = Body('all', title='subtypeconcept'),
advancedprompting:bool = Body(True,title='advancedprompting'),
hardturnoffemojis:bool = Body(False,title='hardturnoffemojis')
):
keys = ['insanitylevel', 'forcesubject', 'artists', 'imagetype', 'onlyartists', 'antivalues', 'prefixprompt',
'suffixprompt', 'promptcompounderlevel', 'seperator', 'givensubject', 'smartsubject', 'giventypeofimage',
'imagemodechance', 'gender', 'subtypeobject','subtypehumanoid','subtypeconcept']
'imagemodechance', 'gender', 'subtypeobject','subtypehumanoid','subtypeconcept','advancedprompting','hardturnoffemojis']
payload = {}
for key in keys:
payload[key] = locals()[key]