Upload app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_ret
|
|
48 |
# https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union
|
49 |
# https://huggingface.co/spaces/jiuface/FLUX.1-dev-Controlnet-Union
|
50 |
@spaces.GPU()
|
51 |
-
def change_base_model(repo_id: str, cn_on: bool): # , progress=gr.Progress(track_tqdm=True) # gradio.exceptions.Error: 'Model load Error: too many values to unpack (expected 2)'
|
52 |
global pipe
|
53 |
global controlnet_union
|
54 |
global controlnet
|
|
|
48 |
# https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union
|
49 |
# https://huggingface.co/spaces/jiuface/FLUX.1-dev-Controlnet-Union
|
50 |
@spaces.GPU()
|
51 |
+
def change_base_model(repo_id: str, cn_on: bool, progress=gr.Progress(track_tqdm=True)): # , progress=gr.Progress(track_tqdm=True) # gradio.exceptions.Error: 'Model load Error: too many values to unpack (expected 2)'
|
52 |
global pipe
|
53 |
global controlnet_union
|
54 |
global controlnet
|