Spaces:
Runtime error
Runtime error
Update to the final API naming
#3
by
multimodalart
HF staff
- opened
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
from diffusers import
|
2 |
import torch
|
3 |
import PIL.Image
|
4 |
import gradio as gr
|
5 |
import random
|
6 |
import numpy as np
|
7 |
|
8 |
-
pipeline =
|
9 |
|
10 |
def predict(steps=1, seed=42):
|
11 |
generator = torch.manual_seed(seed)
|
|
|
1 |
+
from diffusers import LDMPipeline
|
2 |
import torch
|
3 |
import PIL.Image
|
4 |
import gradio as gr
|
5 |
import random
|
6 |
import numpy as np
|
7 |
|
8 |
+
pipeline = LDMPipeline.from_pretrained("CompVis/ldm-celebahq-256")
|
9 |
|
10 |
def predict(steps=1, seed=42):
|
11 |
generator = torch.manual_seed(seed)
|