John6666 commited on
Commit
9466525
β€’
1 Parent(s): 0b43bd5

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def change_base_model(repo_id: str, cn_on: bool): # , progress=gr.Progress(track
75
  print(f"Loading model: {repo_id}")
76
  #clear_cache()
77
  pipe = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=dtype, vae=taef1).to(device)
78
- #pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
79
  last_model = repo_id
80
  last_cn_on = cn_on
81
  #progress(1, desc=f"Model loaded: {repo_id}")
 
75
  print(f"Loading model: {repo_id}")
76
  #clear_cache()
77
  pipe = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=dtype, vae=taef1).to(device)
78
+ pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
79
  last_model = repo_id
80
  last_cn_on = cn_on
81
  #progress(1, desc=f"Model loaded: {repo_id}")