multimodalart HF staff commited on
Commit
379e0dc
1 Parent(s): f35400c

Update to the final API naming

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
- from diffusers import LatentDiffusionUncondPipeline
2
  import torch
3
  import PIL.Image
4
  import gradio as gr
5
  import random
6
  import numpy as np
7
 
8
- pipeline = LatentDiffusionUncondPipeline.from_pretrained("CompVis/ldm-celebahq-256")
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)