jiuface commited on
Commit
c21899b
·
verified ·
1 Parent(s): 11b7640

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -152,6 +152,7 @@ def generate_random_4_digit_string():
152
  def run_lora(prompt, image_url, lora_strings_json, image_strength, cfg_scale, steps, randomize_seed, seed, width, height, upload_to_r2, account_id, access_key, secret_key, bucket, progress=gr.Progress(track_tqdm=True)):
153
  print("run_lora", prompt, lora_strings_json, cfg_scale, steps, width, height)
154
  gr.Info("Starting process")
 
155
  torch.cuda.empty_cache()
156
  img2img_model = False
157
  orginal_image = None
 
152
  def run_lora(prompt, image_url, lora_strings_json, image_strength, cfg_scale, steps, randomize_seed, seed, width, height, upload_to_r2, account_id, access_key, secret_key, bucket, progress=gr.Progress(track_tqdm=True)):
153
  print("run_lora", prompt, lora_strings_json, cfg_scale, steps, width, height)
154
  gr.Info("Starting process")
155
+ txt2img_pipe.to("cuda")
156
  torch.cuda.empty_cache()
157
  img2img_model = False
158
  orginal_image = None