Muhammadreza commited on
Commit
d88077a
1 Parent(s): 932a564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,12 +9,12 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
9
  if torch.cuda.is_available():
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12
- pipe = DiffusionPipeline.from_pretrained("mann-e/Mann-E_Turbo", torch_dtype=torch.float16)
13
  pipe.enable_xformers_memory_efficient_attention()
14
  pipe = pipe.to(device)
15
  torch.cuda.empty_cache()
16
  else:
17
- pipe = DiffusionPipeline.from_pretrained("mann-e/Mann-E_Turbo", use_safetensors=True)
18
  pipe = pipe.to(device)
19
 
20
  def genie (prompt, negative_prompt, steps, seed):
 
9
  if torch.cuda.is_available():
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12
+ pipe = DiffusionPipeline.from_pretrained("mann-e/Mann-E_Dreams", torch_dtype=torch.float16)
13
  pipe.enable_xformers_memory_efficient_attention()
14
  pipe = pipe.to(device)
15
  torch.cuda.empty_cache()
16
  else:
17
+ pipe = DiffusionPipeline.from_pretrained("mann-e/Mann-E_Dreams", use_safetensors=True)
18
  pipe = pipe.to(device)
19
 
20
  def genie (prompt, negative_prompt, steps, seed):