fffiloni commited on
Commit
1688517
1 Parent(s): 6ccdc26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def generate(image, prompt, seed):
6
  command = f"python handrefiner.py --input_img {image} --out_dir output --strength 0.55 --weights models/inpaint_depth_control.ckpt --prompt '{prompt}' --seed {seed}"
7
  try:
8
  result = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
9
- output_path = 'output/image_0.jpg'
10
  print("Output:", result.stdout)
11
  return output_path
12
  except subprocess.CalledProcessError as e:
 
6
  command = f"python handrefiner.py --input_img {image} --out_dir output --strength 0.55 --weights models/inpaint_depth_control.ckpt --prompt '{prompt}' --seed {seed}"
7
  try:
8
  result = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
9
+ output_path = 'output'
10
  print("Output:", result.stdout)
11
  return output_path
12
  except subprocess.CalledProcessError as e: