Safetensors
aredden commited on
Commit
b84f35e
·
unverified ·
2 Parent(s): c247326 9b84867

Merge pull request #2 from XmYx/main

Browse files
Files changed (1) hide show
  1. util.py +6 -1
util.py CHANGED
@@ -8,7 +8,12 @@ from modules.conditioner import HFEmbedder
8
  from modules.flux_model import Flux, FluxParams
9
  from modules.flux_model_f8 import Flux as FluxF8
10
  from safetensors.torch import load_file as load_sft
11
- from enum import StrEnum
 
 
 
 
 
12
  from pydantic import BaseModel, ConfigDict
13
  from loguru import logger
14
 
 
8
  from modules.flux_model import Flux, FluxParams
9
  from modules.flux_model_f8 import Flux as FluxF8
10
  from safetensors.torch import load_file as load_sft
11
+ try:
12
+ from enum import StrEnum
13
+ except:
14
+ from enum import Enum
15
+ class StrEnum(str, Enum):
16
+ pass
17
  from pydantic import BaseModel, ConfigDict
18
  from loguru import logger
19