Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,6 @@ base = "black-forest-labs/FLUX.1-dev"
|
|
27 |
adapter = MotionAdapter().to(device, dtype)
|
28 |
adapter.load_state_dict(load_file(hf_hub_download(repo ,ckpt), device=device))
|
29 |
pipe = FluxPipeline.from_pretrained(base, motion_adapter=adapter, torch_dtype=dtype, token=os.getenv("hf_token")).to(device)
|
30 |
-
pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing", beta_schedule="linear")
|
31 |
|
32 |
def translate(text,lang):
|
33 |
|
|
|
27 |
adapter = MotionAdapter().to(device, dtype)
|
28 |
adapter.load_state_dict(load_file(hf_hub_download(repo ,ckpt), device=device))
|
29 |
pipe = FluxPipeline.from_pretrained(base, motion_adapter=adapter, torch_dtype=dtype, token=os.getenv("hf_token")).to(device)
|
|
|
30 |
|
31 |
def translate(text,lang):
|
32 |
|