Spaces:
Runtime error
Runtime error
Commit
•
379e0dc
1
Parent(s):
f35400c
Update to the final API naming
Browse files
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)
|