Spaces:
Runtime error
Runtime error
Update
Browse files
model.py
CHANGED
@@ -116,8 +116,6 @@ class Model:
|
|
116 |
guidance_scale: float,
|
117 |
seed: int,
|
118 |
) -> list[PIL.Image.Image]:
|
119 |
-
if seed == -1:
|
120 |
-
seed = np.random.randint(0, np.iinfo(np.int64).max)
|
121 |
generator = torch.Generator().manual_seed(seed)
|
122 |
return self.pipe(prompt=prompt,
|
123 |
negative_prompt=negative_prompt,
|
|
|
116 |
guidance_scale: float,
|
117 |
seed: int,
|
118 |
) -> list[PIL.Image.Image]:
|
|
|
|
|
119 |
generator = torch.Generator().manual_seed(seed)
|
120 |
return self.pipe(prompt=prompt,
|
121 |
negative_prompt=negative_prompt,
|