DHILBER commited on
Commit
89614f6
·
1 Parent(s): 53a46f8

updated space

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -8,11 +8,11 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
8
 
9
  if torch.cuda.is_available():
10
  torch.cuda.max_memory_allocated(device=device)
11
- pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
12
  pipe.enable_xformers_memory_efficient_attention()
13
  pipe = pipe.to(device)
14
  else:
15
- pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", use_safetensors=True)
16
  pipe = pipe.to(device)
17
 
18
  MAX_SEED = np.iinfo(np.int32).max
@@ -38,9 +38,8 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
38
  return image
39
 
40
  examples = [
41
- "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
42
- "An astronaut riding a green horse",
43
- "A delicious ceviche cheesecake slice",
44
  ]
45
 
46
  css="""
 
8
 
9
  if torch.cuda.is_available():
10
  torch.cuda.max_memory_allocated(device=device)
11
+ pipe = DiffusionPipeline.from_pretrained("dilber/flux-lora-pokemon", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
12
  pipe.enable_xformers_memory_efficient_attention()
13
  pipe = pipe.to(device)
14
  else:
15
+ pipe = DiffusionPipeline.from_pretrained("dilber/flux-lora-pokemon", use_safetensors=True)
16
  pipe = pipe.to(device)
17
 
18
  MAX_SEED = np.iinfo(np.int32).max
 
38
  return image
39
 
40
  examples = [
41
+ "A castle in the style of TOK",
42
+ "An astronaut in the style of TOK"
 
43
  ]
44
 
45
  css="""