amildravid4292 commited on
Commit
dbfa176
·
verified ·
1 Parent(s): 39d3c7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -317,7 +317,7 @@ class main():
317
  @spaces.GPU(duration=120)
318
  def sample_then_run(self):
319
  self.unet = UNet2DConditionModel.from_pretrained(
320
- pretrained_model_name_or_path, subfolder="unet", revision=revision
321
  )
322
  self.unet.to(self.device, dtype=torch.bfloat16)
323
  self.weights = sample_weights(self.unet, self.proj, self.mean, self.std, self.v[:, :1000], self.device, factor = 1.00)
 
317
  @spaces.GPU(duration=120)
318
  def sample_then_run(self):
319
  self.unet = UNet2DConditionModel.from_pretrained(
320
+ "stablediffusionapi/realistic-vision-v51" , subfolder="unet", revision=revision
321
  )
322
  self.unet.to(self.device, dtype=torch.bfloat16)
323
  self.weights = sample_weights(self.unet, self.proj, self.mean, self.std, self.v[:, :1000], self.device, factor = 1.00)