Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import spaces
|
|
| 3 |
import gradio as gr
|
| 4 |
from diffusers import StableCascadeDecoderPipeline, StableCascadePriorPipeline
|
| 5 |
|
| 6 |
-
prior_pipeline = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", torch_dtype=torch.float16).to("
|
| 7 |
-
decoder_pipeline = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=torch.float16).to("
|
| 8 |
|
| 9 |
@spaces.GPU(duration=480)
|
| 10 |
def generate(prompt, negative_prompt, width, height, steps):
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
from diffusers import StableCascadeDecoderPipeline, StableCascadePriorPipeline
|
| 5 |
|
| 6 |
+
prior_pipeline = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", torch_dtype=torch.float16).to("cuda")
|
| 7 |
+
decoder_pipeline = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=torch.float16).to("cuda")
|
| 8 |
|
| 9 |
@spaces.GPU(duration=480)
|
| 10 |
def generate(prompt, negative_prompt, width, height, steps):
|