tori29umai commited on
Commit
b3b6580
1 Parent(s): 96ff376
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def load_model(lora_dir, cn_dir):
37
  pipe.load_lora_weights(lora_dir, weight_name="lineart.safetensors")
38
  return pipe
39
 
40
- @spaces.GPU
41
  def predict(input_image_path, prompt, negative_prompt, controlnet_scale):
42
  pipe = load_model(lora_dir, cn_dir)
43
  input_image = Image.open(input_image_path)
 
37
  pipe.load_lora_weights(lora_dir, weight_name="lineart.safetensors")
38
  return pipe
39
 
40
+ @spaces.GPU(duration=120)
41
  def predict(input_image_path, prompt, negative_prompt, controlnet_scale):
42
  pipe = load_model(lora_dir, cn_dir)
43
  input_image = Image.open(input_image_path)