multimodalart HF staff commited on
Commit
57558ed
1 Parent(s): b86f457

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -83,8 +83,10 @@ def run_lora(prompt, negative, weight, selected_state):
83
  pipe.unet,
84
  for_inference=True,
85
  )
86
- lora_model = lora_model.to("cuda")
87
  lora_model.apply_to(pipe.text_encoder, pipe.unet) #is apply too all you need?
 
 
88
  last_merged = True
89
 
90
  image = pipe(
 
83
  pipe.unet,
84
  for_inference=True,
85
  )
86
+ lora_model = lora_model.to("cuda").to(dtype=torch.float16)
87
  lora_model.apply_to(pipe.text_encoder, pipe.unet) #is apply too all you need?
88
+ lora_model = lora_model.to("cuda").to(dtype=torch.float16)
89
+
90
  last_merged = True
91
 
92
  image = pipe(