barreloflube commited on
Commit
7490ef4
1 Parent(s): 870b47c

Refactor UI structure and update image tab imports

Browse files
Files changed (1) hide show
  1. src/ui/tabs/images/flux.py +2 -1
src/ui/tabs/images/flux.py CHANGED
@@ -10,7 +10,8 @@ from src.tasks.images.sd import gen_img, ControlNetReq, SDReq, SDImg2ImgReq, SDI
10
 
11
 
12
  models = ["black-forest-labs/FLUX.1-dev"]
13
- loras = json.loads("data/images/lora/flux.json")
 
14
 
15
 
16
  def flux_tab():
 
10
 
11
 
12
  models = ["black-forest-labs/FLUX.1-dev"]
13
+ with open("data/images/lora/flux.json", "r") as f:
14
+ loras = json.load(f)
15
 
16
 
17
  def flux_tab():