o >g@s2ddlZGdddZGdddZeedZdS)Nc@,eZdZeddZdZdZdZddZdS) CLIPTextEncodeFluxc Cs4ddddddfddddfdddd d d fd iS) Nrequired)CLIPSTRINGT) multilinedynamicPromptsFLOAT @Y@皙?defaultminmaxstep)clipclip_lt5xxlguidancesrrA/home/comdoleger1/zen-flux-style-shape/comfy_extras/nodes_flux.py INPUT_TYPESs   zCLIPTextEncodeFlux.INPUT_TYPES CONDITIONINGencodeadvanced/conditioning/fluxcCsJ||}||d|d<|j|ddd}|d}||d<||ggfS)NrT) return_pooled return_dictcondr)tokenizeencode_from_tokenspop)selfrrrrtokensoutputr"rrrrs   zCLIPTextEncodeFlux.encodeN) __name__ __module__ __qualname__ classmethodr RETURN_TYPESFUNCTIONCATEGORYrrrrrrs  rc@r) FluxGuidancecCsddddddddfd iS) Nrrr r r r r r) conditioningrrrrrrrszFluxGuidance.INPUT_TYPESrappendrcCst|d|i}|fS)Nr) node_helpersconditioning_set_values)r&r1rcrrrr2'szFluxGuidance.appendN) r)r*r+r,rr-r.r/r2rrrrr0s  r0)rr0)r3rr0NODE_CLASS_MAPPINGSrrrrs