weathon
commited on
Commit
·
a5d8cc1
1
Parent(s):
5598aeb
cuda
Browse files
app.py
CHANGED
|
@@ -25,12 +25,12 @@ pipe = VSFStableDiffusion3Pipeline.from_pretrained(
|
|
| 25 |
"stabilityai/stable-diffusion-3.5-large-turbo",
|
| 26 |
torch_dtype=torch.bfloat16,
|
| 27 |
hf_token=os.environ.get("HF_TOKEN", None)
|
| 28 |
-
)
|
| 29 |
import os
|
| 30 |
@spaces.GPU
|
| 31 |
def generate_video(positive_prompt, negative_prompt, guidance_scale, bias, step, seed, progress=gr.Progress(track_tqdm=False)):
|
| 32 |
lambda total: progress.tqdm(range(total))
|
| 33 |
-
|
| 34 |
print(f"Generating image with params: {positive_prompt}, {negative_prompt}, {guidance_scale}, {bias}, {step}")
|
| 35 |
|
| 36 |
output = pipe(
|
|
|
|
| 25 |
"stabilityai/stable-diffusion-3.5-large-turbo",
|
| 26 |
torch_dtype=torch.bfloat16,
|
| 27 |
hf_token=os.environ.get("HF_TOKEN", None)
|
| 28 |
+
)
|
| 29 |
import os
|
| 30 |
@spaces.GPU
|
| 31 |
def generate_video(positive_prompt, negative_prompt, guidance_scale, bias, step, seed, progress=gr.Progress(track_tqdm=False)):
|
| 32 |
lambda total: progress.tqdm(range(total))
|
| 33 |
+
pipe = pipe.to("cuda")
|
| 34 |
print(f"Generating image with params: {positive_prompt}, {negative_prompt}, {guidance_scale}, {bias}, {step}")
|
| 35 |
|
| 36 |
output = pipe(
|