Update app_diffusers.py
Browse files- app_diffusers.py +1 -1
app_diffusers.py
CHANGED
|
@@ -25,7 +25,7 @@ pipe = OvisImagePipeline.from_pretrained(
|
|
| 25 |
token=hf_token,
|
| 26 |
torch_dtype=torch.bfloat16
|
| 27 |
)
|
| 28 |
-
pipe.to(
|
| 29 |
|
| 30 |
@spaces.GPU(duration=75)
|
| 31 |
def generate(prompt, img_height=1024, img_width=1024, seed=42, steps=50, guidance_scale=5.0):
|
|
|
|
| 25 |
token=hf_token,
|
| 26 |
torch_dtype=torch.bfloat16
|
| 27 |
)
|
| 28 |
+
pipe.to(device)
|
| 29 |
|
| 30 |
@spaces.GPU(duration=75)
|
| 31 |
def generate(prompt, img_height=1024, img_width=1024, seed=42, steps=50, guidance_scale=5.0):
|