John6666 commited on
Commit
4a12110
1 Parent(s): 06c79db

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def load_quantized_control(control_repo: str, dtype, hf_token):
89
  text_encoder_2 = T5EncoderModel.from_pretrained(control_repo, subfolder="text_encoder_2", torch_dtype=dtype, token=hf_token).to("cpu")
90
  return transformer, text_encoder_2
91
 
92
- def load_pipeline(repo_id: str, cn_on: bool, model_type: str, task: str, dtype_str: str, hf_token: str, progress=gr.Progress(track_tqdm=True)):
93
  try:
94
  controlnet_model_union_repo = 'InstantX/FLUX.1-dev-Controlnet-Union'
95
  if task == "Flux Fill" or repo_id in models_fill:
 
89
  text_encoder_2 = T5EncoderModel.from_pretrained(control_repo, subfolder="text_encoder_2", torch_dtype=dtype, token=hf_token).to("cpu")
90
  return transformer, text_encoder_2
91
 
92
+ def load_pipeline(pipe, pipe_i2i, repo_id: str, cn_on: bool, model_type: str, task: str, dtype_str: str, hf_token: str, progress=gr.Progress(track_tqdm=True)):
93
  try:
94
  controlnet_model_union_repo = 'InstantX/FLUX.1-dev-Controlnet-Union'
95
  if task == "Flux Fill" or repo_id in models_fill: