MegaTronX commited on
Commit
56db74f
Β·
verified Β·
1 Parent(s): 2e50789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -7,14 +7,19 @@ from diffusers import DiffusionPipeline
7
  import torch
8
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
- model_repo_id = "stabilityai/sdxl-turbo" # Replace to the model you would like to use
11
 
12
  if torch.cuda.is_available():
13
  torch_dtype = torch.float16
14
  else:
15
  torch_dtype = torch.float32
16
 
17
- pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
 
 
 
 
 
 
18
  pipe = pipe.to(device)
19
 
20
  MAX_SEED = np.iinfo(np.int32).max
 
7
  import torch
8
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
10
 
11
  if torch.cuda.is_available():
12
  torch_dtype = torch.float16
13
  else:
14
  torch_dtype = torch.float32
15
 
16
+ base_model = "black-forest-labs/FLUX.1-dev"
17
+ pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
18
+
19
+ lora_repo = "MegaTronX/SuicideGirl-FLUX"
20
+ trigger_word = "SuicideGirl" # Leave trigger_word blank if not used.
21
+ pipe.load_lora_weights(lora_repo, weight_name = "AndroFlux-v19.safetensors")
22
+
23
  pipe = pipe.to(device)
24
 
25
  MAX_SEED = np.iinfo(np.int32).max