Spaces:
Runtime error
Runtime error
Commit
·
7b4dbee
1
Parent(s):
f35400c
Update to the final API naming (#3)
Browse files- Update to the final API naming (379e0dca276c76851be082a22ff47a478b3503c6)
Co-authored-by: Multimodal AI art <[email protected]>
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)
|