Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
58 |
trust_remote_code=True,
|
59 |
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32
|
60 |
)
|
61 |
-
pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained(model_repo, subfolder="scheduler", shift=5)
|
62 |
pipe = pipe.to(device)
|
63 |
|
64 |
MAX_SEED = 2**31 - 1
|
|
|
58 |
trust_remote_code=True,
|
59 |
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32
|
60 |
)
|
61 |
+
pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained(model_repo, subfolder="scheduler", trust_remote_code = True, shift=5)
|
62 |
pipe = pipe.to(device)
|
63 |
|
64 |
MAX_SEED = 2**31 - 1
|