theSure commited on
Commit
0374959
·
verified ·
1 Parent(s): c1e180a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -148,10 +148,9 @@ def predict(
148
  gray_image_pil = Image.fromarray(gray_image).convert('L')
149
  else:
150
  gray_image_pil = input_image["layers"][0]
151
- if pipe is None:
152
- base_model_path = 'black-forest-labs/FLUX.1-dev'
153
- lora_path = 'theSure/Omnieraser'
154
- pipe = load_model(base_model_path, lora_path)
155
  result = pipe(
156
  prompt=prompt,
157
  control_image=input_image["background"].convert("RGB"),
 
148
  gray_image_pil = Image.fromarray(gray_image).convert('L')
149
  else:
150
  gray_image_pil = input_image["layers"][0]
151
+ base_model_path = 'black-forest-labs/FLUX.1-dev'
152
+ lora_path = 'theSure/Omnieraser'
153
+ pipe = load_model(base_model_path, lora_path)
 
154
  result = pipe(
155
  prompt=prompt,
156
  control_image=input_image["background"].convert("RGB"),